26 lines
500 B
C++
26 lines
500 B
C++
#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
|