Ah...I see. Thanks, I will soon again tinker with color values.
On Feb 10, 3:45 pm, Mike Reed r...@google.com wrote:
If you want to set a component (e.g. RED) to zero, use these
mul: 0xFF00
add: 0
If you want to force a component to be full-on (e.g. BLUE), use these
mul: 0x
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
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
If you want to set a component (e.g. RED) to zero, use these
mul: 0xFF00
add: 0
If you want to force a component to be full-on (e.g. BLUE), use these
mul: 0x
add: 0x00FF
If you want to slightly darken RED and GREEN, use
mul: 0xFFFF
add: 0
On Tue, Feb 10, 2009 at 3:41 PM,
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
5 matches
Mail list logo