Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jbyteArray myJByteArray = env->NewByteArray(imageToScan.cols * imageToScan.rows);
- env->SetByteArrayRegion(myJByteArray, 0, imageToScan.cols * imageToScan.rows, (jbyte *) imageToScan.data);
- BitmapFactory.Options options = new BitmapFactory.Options();
- options.outHeight = height;
- options.outWidth = width;
- Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, options);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement