blob: b0e7198260eebc527a385cdf0f089d99dfaa2c6d (
plain)
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
|
#pragma once
#include <jni/jni.hpp>
#include "bitmap.hpp"
namespace mbgl {
namespace android {
class BitmapFactory {
public:
static constexpr auto Name() {
return "android/graphics/BitmapFactory";
};
static void registerNative(jni::JNIEnv&);
static jni::Object<Bitmap>
DecodeByteArray(jni::JNIEnv&, jni::Array<jni::jbyte> data, jni::jint offset, jni::jint length);
private:
static jni::Class<BitmapFactory> _class;
};
} // namespace android
} // namespace mbgl
|