here may have some code into java it is working correctly but I want to convert this code into JNI is it possible or not if possible then how I can use Matrix and Canvas into JNI please any body help me for this task.
public static Bitmap myBitmapTest(Bitmap src) {
Bitmap dst = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(dst);
Matrix matrix = new Matrix();
Paint paint = new Paint();
matrix.setRotate(90, src.getWidth() / 2, src.getHeight() / 2);
canvas.drawBitmap(src, matrix, paint);
return dst;
}