On Mon, Apr 30, 2012 at 04:45:58PM +0100, Jason Teagle wrote: > Call me suspicious, but in their own example at > > http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/Xfermodes.html > > they don't use either ADD or OVERLAY, but do list the remaining 16 > from the PorterDuff enum: > > private static final Xfermode[] sModes = { > new PorterDuffXfermode(PorterDuff.Mode.CLEAR), > new PorterDuffXfermode(PorterDuff.Mode.SRC), > new PorterDuffXfermode(PorterDuff.Mode.DST), > new PorterDuffXfermode(PorterDuff.Mode.SRC_OVER), > new PorterDuffXfermode(PorterDuff.Mode.DST_OVER), > new PorterDuffXfermode(PorterDuff.Mode.SRC_IN), > new PorterDuffXfermode(PorterDuff.Mode.DST_IN), > new PorterDuffXfermode(PorterDuff.Mode.SRC_OUT), > new PorterDuffXfermode(PorterDuff.Mode.DST_OUT), > new PorterDuffXfermode(PorterDuff.Mode.SRC_ATOP), > new PorterDuffXfermode(PorterDuff.Mode.DST_ATOP), > new PorterDuffXfermode(PorterDuff.Mode.XOR), > new PorterDuffXfermode(PorterDuff.Mode.DARKEN), > new PorterDuffXfermode(PorterDuff.Mode.LIGHTEN), > new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY), > new PorterDuffXfermode(PorterDuff.Mode.SCREEN) > };
> I remember someone said it was available as of 2.2 or something like > that, but it's almost as if it's been deprecated for some reason. That looks like the list that Eclipse gave, too. But, when you look at the developers guide (android.graphics.PorterDuff.Mode), ADD and OVERLAY are also listed. I THOUGHT they were also listed in the book, but I just checked, and they aren't. So the only place I saw them was the developers guide (which I understand to be *THE* reference). It doesn't say anything about those modes being deprecated...just that they've been available since API Level 1. But I'm starting to believe that either the dev. guide is wrong on this one. On to the next response that just came in..... Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4) MiSTie #49997 < Running FreeBSD 7.0 > [email protected] ICBM/Hurricane: 30.44406N 86.59909W "Someone ever tries to kill you, you try to kill 'em right back!" --Mal (Firefly, 1x03, Our Mrs. Reynolds) Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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

