[android-developers] Re: ImageView setColorFilter, what to do for a bitmap?
If there isn't an API approach (and I don't know if there is or isn't)
to filter colors in a region of an ImageView, have you considered
using the API to change individual pixels ... or reviewing the png
file format and changing the colormap of the png (assuming the png
file has a colormap)?
On Jul 24, 11:21 am, Beth <emez...@gmail.com> wrote:
> Thanks Greg, I saw that.
>
> There is no ImageView. It's straight canvas and bitmaps, no
> Drawables, no Views.
> I may change that... The pixels to change could be one of several
> bitmaps in an ImageView. I don't know if the ImageView ColorFilter
> call will work in this case. The bitmap I want to change is on top of
> another bitmap (background) that I do not want to fliter.
>
> On Jul 23, 9:19 pm, greg <sep...@eduneer.com> wrote:
>
> > Isn't your canvas associated with an ImageView? (ImageView has a
> > setColorFilter() method.)
>
> > On Jul 23, 1:31 pm, Beth <emez...@gmail.com> wrote:
>
> > > Hi all,
>
> > > In my code there is a canvas drawing a bitmap created from a resource
> > > png. It is not a Drawable. If I want to take that bitmap and tint
> > > it, is there something similar to setColorFilter in the graphics
> > > package that I can use on the canvas and bitmap object? To be clear,
> > > my goal is to change the brown pixels of my bitmap to blue, or from
> > > white to red. Do you all have any suggestions?
>
> > > Regards,
> > > Beth
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home