hi,
I'm trying to rotate a 32x32 bitmap around it's center. But when the 'transformation' is done, it looked like it didn't rotate around center. Anyone got a clue to what's wrong with the code below?
I'm trying to rotate a 32x32 bitmap around it's center. But when the 'transformation' is done, it looked like it didn't rotate around center. Anyone got a clue to what's wrong with the code below?
Code:
m.setRotate(77, 16, 16);
rotatedBitmap = Bitmap.createBitmap(orgBitmap, 0, 0, orgBitmap
.getWidth(), orgBitmap.getHeight(), m, true);