forked from fnc12/Mitsoko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImage.hpp
39 lines (27 loc) · 756 Bytes
/
Image.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Image.hpp
// Groozim
//
// Created by John Zakharov on 25.11.16.
// Copyright © 2016 Outlaw Studio. All rights reserved.
//
#ifndef __VIPER_VIPER__IMAGE
#define __VIPER_VIPER__IMAGE
#include "Mitsoko/iOSutil/UI/Image.hpp"
#include "Mitsoko/AndroidUtil/android/graphics/Bitmap.hpp"
namespace Mitsoko {
struct Image {
#ifdef __APPLE__
UI::Image image;
#else
android::graphics::Bitmap image;
#endif //__APPLE__
Image();
Image(decltype(image));
operator bool () const;
operator decltype(image) ();
void writeToFile(const std::string &filepath);
decltype(image) get();
};
}
#endif //__VIPER_VIPER__IMAGE