You can also draw a roundrect (with antialiasing on the paint) with
that xfermode to get the same effect.

On Mon, Jan 19, 2009 at 12:49 PM, Patrick <bpatm...@gmail.com> wrote:
>
> 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 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