I am drawing on canvas using an array as the pixels:
g.drawBitmap(imageBuffer, offset, stride, 0, 0, width, height, false, mPaint);
since imageBuffer is an array, not bitmap, how to I rotate while minimizing the extra effort to copy data in memory?
Assuming that
gis the canvas, into which you’re drawing, you can easily do this with:And that should be it.