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 <marckas...@gmail.com> 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 <marckas...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---