Rotating a bitmap using JNI & NDK

Since you’re using ARGB_8888 format every pixel is an uint32_t not uint16_t. Try changing your rotated Bitmap creation to use uint32_t for source and destination arrays and it should work better.

Leave a Comment