Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
23 lines
617 B
C++
23 lines
617 B
C++
#pragma once
|
|
|
|
#include <jni/jni.hpp>
|
|
|
|
#include "bitmap.hpp"
|
|
|
|
namespace mln {
|
|
namespace android {
|
|
|
|
class BitmapFactory {
|
|
public:
|
|
static constexpr auto Name() { return "android/graphics/BitmapFactory"; };
|
|
static void registerNative(jni::JNIEnv&);
|
|
|
|
static jni::Local<jni::Object<Bitmap>> DecodeByteArray(jni::JNIEnv&,
|
|
jni::Array<jni::jbyte>& data,
|
|
jni::jint offset,
|
|
jni::jint length);
|
|
};
|
|
|
|
} // namespace android
|
|
} // namespace mln
|