Hello,
I have a bitmap that i want it to rotate all the time.
This bitmap is placed in a SurfaceView.
My question is: Do i have to create the bitmap every time i want it to
rotate?
here is my code it is placed is the on draw method:
leftMatrix.setRotate(degrees++, coords.getX()+bitmap.getWidth()/2,
coords.getY());
graphic.setBitmap(Bitmap.createBitmap(bitmap, 0, 0,
bitmap.getWidth(), bitmap.getHeight(), leftMatrix, false));
canvas.drawBitmap(bitmap, coords.getX(), coords.getY(), null);
Kind Regards
Nir
--
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