Carrier:
Country / Language: Pakistan / US ENG
OS / Browser / build number (if applicable): Android


Matrix matrix1 = new Matrix();
matrix1.setRotate(mSecondsAngel, 160, 160);
Bitmap orgBitmap = mTileArray[mTileGrid[x][y]]; ////// a stored bitmap
is loaded in local var
Bitmap rotatedBitmap = Bitmap.createBitmap( orgBitmap, 0, 0,
orgBitmap.getWidth(), orgBitmap.getHeight(), matrix, true);
canvas.drawBitmap(rotatedBitmap, 0, 0, mPaint);


it should rotate arround 160,160 but it rotates arround some arbitrary
point.
Please note canvas (0,0)and bitmap (0,0) are exactly overlapping

I think the issue is with the translation matrix involving (160,160).
I guess that is not being applied.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to