Sorry if this shows up twice, I sent it via email to the list a few
days ago and it never showed up, so I'm trying from the web page.

I'm working on an android application, and I have a drawable that I'm
loading up from a source image. On this image, I'd like to convert all
of the white pixels to a different color, say blue, and then cache the
resultant Drawable object so I can use it later.

So for example say I have a 20x20 PNG file that has a white circle in
the middle, and that everything outside the circle is transparent.
What's the best way to turn that white circle blue and cache the
results? Does the answer change if I want to use that source image to
create several new Drawables (say blue, red, green, orange, etc)?

I'm guessing that I'll want to use a ColorMatrix in some way, but I'm
not sure how, and I couldn't find anything from searching on the list.

Thanks

Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to