You could have a 9-patch drawable that is an alpha mask of the shape
you want to keep, and draw that onto the canvas obtained from the
bitmap using the DST_IN PorterDuff mode. Making it a 9-patch will let
you set the corners to not stretch, so you can use it no matter the
size of the destination bitmap.

--~--~---------~--~----~------------~-------~--~----~
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