My goal is the draw a bitmap onto another bitmap but rotated 90
degress.  whats the most efficient way to do that.  My current method
is as follows which is horribly bad because it creates a new bitmap
every time.

//i am taking image and drawing it rotated onto image2

Matrix matrix = og.getMatrix();
 matrix.postRotate(90);

Canvas g = new Canvas(image2);

g.drawBitmap(
                                Bitmap.createBitmap(image, 0, 0, image.getWidth
(), image.getHeight(), matrix, true)
                                , 0, 0, null);

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

Reply via email to