@@ -13,9 +13,10 @@ jni::Local<jni::Object<Bitmap>> BitmapFactory::DecodeByteArray(jni::JNIEnv& env,
|
||||
jni::jint length) {
|
||||
static auto& _class = jni::Class<BitmapFactory>::Singleton(env);
|
||||
|
||||
// Images are loaded with ARGB_8888 config, and premultiplied by default, which is exactly
|
||||
// what we want, so we're not providing a BitmapFactory.Options object.
|
||||
using Signature = jni::Object<Bitmap> (jni::Array<jni::jbyte>, jni::jint, jni::jint);
|
||||
// Images are loaded with ARGB_8888 config, and premultiplied by default,
|
||||
// which is exactly what we want, so we're not providing a
|
||||
// BitmapFactory.Options object.
|
||||
using Signature = jni::Object<Bitmap>(jni::Array<jni::jbyte>, jni::jint, jni::jint);
|
||||
static auto method = _class.GetStaticMethod<Signature>(env, "decodeByteArray");
|
||||
|
||||
return _class.Call(env, method, data, offset, length);
|
||||
|
||||
Reference in New Issue
Block a user