That's basically how the View class does the fade effect in lists,
etc. It involves using a LinearGradient and a PorterDuff XferMode. You
can look at the source code of View.java for more details.

On Thu, May 28, 2009 at 9:22 PM, van.etten.m...@gmail.com
<van.etten.m...@gmail.com> wrote:
>
> I was hoping someone could help me fadeout the right side of a bitmap
> using the alpha channel?  Basically, the left side of the bitmap has a
> alpha of 255 and the right has an alpha of 0
>
> Looks like canvas.drawBitmap does not use LinearGradient shader?
>
> Thanks and cheers,
> John
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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

Reply via email to