Is there a way to rotate a bitmap without copying it? Or maybe an image containing a bitmap? Right now I have something similar to:
Bitmap bm = BitmapFactory.decodeFile(... // get the orientation Matrix m = new Matrix m.postRotate(orientation) Bitmap new = Bitmap.createFromBitmap(bm, ..., m);
source share