On Jul 16, 12:02 pm, Wesley Sagittarius <[EMAIL PROTECTED]> wrote: > hi all, > > I would like to ask anyone know how to scale/zoom bitmap before paint > it out??? >
You apply the transformation to the canvas before drawing the bitmap. I find the scale(float sx, float sy, float px, float py) method the easiest to use as you can set a pivot point for the scale. There are methods for saving and restoring the state of the canvas so you can restore the canvas state to stop subsequent draws having the transformation applied. Alternatively you can apply the reverse transformation after you have drawn your bitmap. If you are doing scaling and rotating you may also want to play with the setBitmapFilter and setAntiAlias flags on the Paint object to get better quality. --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

