In My Business card reader android application , i got high resolution image/large size image, when i was rotation the that image, it will take more time some times it will show outOfMemory exception. so please help me to rotate image bitmap in C/C++ native code.`
I use below code for image rotating.
private Bitmap rotateBitmap(Bitmap source, int angle) {
Matrix matrix = new Matrix();
matrix.postRotate(angle);
Bitmap createBitmap = Bitmap.createBitmap(source, 0, 0,
source.getWidth(), source.getHeight(), matrix, true);
source.recycle();
return createBitmap;
}
`