[android-developers] Re: Any way to change one color to another on a bitmap?

2012-03-05 Thread Nadeem Hasan
How about: d.setColorFilter( color, PorterDuff.Mode.SRC_ATOP ); * * -- 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 andr

[android-developers] Re: Any way to change one color to another on a bitmap?

2012-03-05 Thread darrinps
Yes. That's what I ended up going with and it is a LOT faster. Probably fast enough for what I need. On Mar 4, 6:32 pm, gjs wrote: > Hi, > > Did you try the array version of setPixels() rather than the single > pixel method ? > Array version is much faster. > > Regards > > On Mar 3, 6:56 am, darr

[android-developers] Re: Any way to change one color to another on a bitmap?

2012-03-04 Thread gjs
Hi, Did you try the array version of setPixels() rather than the single pixel method ? Array version is much faster. Regards On Mar 3, 6:56 am, darrinps wrote: > I have a bitmap and want to be able to change all black pixels to all > blue. I know you can do this via Bitmap.setPixel but that pro