Mike, thanks for the reply.  Perhaps I don't fully understand how a
value is assigned to a color.  Forgive me, I should have said  "I am
perplexed" rather then "I was mislead".

Anyways, I am still perplexed.  Can you give an example on how to
manipulate a red or green component?  Do I need to use
android.graphics.Color.rgb() or Color.red(), etc., with
LightingColorFilter?  I can't seem to get any color other then blue,
if I don't use a neg value.

On Feb 10, 7:47 am, Mike Reed <[email protected]> wrote:
> The int values are colors (see android.graphics.Color), and each of
> its 4 bytes (one for each alpha, red, green, blue components) range
> from 0..255, thus you can multiply/add each component with different
> coefficients.
>
> On Mon, Feb 9, 2009 at 5:52 PM, myIP <[email protected]> wrote:
>
> > It looks like the int values can range from -255 to 255.  I was
> > mislead, the docs has a range of values of 0 to 255.
>
> > On Feb 9, 5:06 pm, myIP <[email protected]> wrote:
> >> How would I be able to adjust a channel (R,G or B) using
> >> ImageView.setColorFilter by passing an instance of LightingColorFilter
> >> in its construct?
>
> >> For an example, when I create an instance of LightingColorFilter, I
> >> adjust the two params that are int values between 0-255.  With this
> >> instance, I then pass it into setColorFilter.  The image always ends
> >> up anywhere from being black to blue.  How can I adjust the Red or
> >> Green channel?
>
> >> LightingColorFilter lcf = new LightingColorFilter( mul, add);
> >> imageView.setColorFilter(lcf);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to