Files
MapLibreParticleLab/platform/android/src/bitmap_factory.hpp
Bart Louwers 71f6da2722 Add clang-format (#1086)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-05-01 16:57:37 +02:00

23 lines
619 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::Local<jni::Object<Bitmap>> DecodeByteArray(jni::JNIEnv&,
jni::Array<jni::jbyte>& data,
jni::jint offset,
jni::jint length);
};
} // namespace android
} // namespace mbgl