I want to add light of the image, I want to use LightingColorFilter
LightingColorFilter lcf = new LightingColorFilter( mul, add);
imageView.setColorFilter(lcf);
but I don't know how to adjust mul, add
, can you give some link or code or parameters to adjust the light of the image?
Thank you
The integer values are colours (you may want to have a closer look here http://developer.android.com/reference/android/graphics/Color.html)
4 Bytes are used, one for alpha, one for red, one for green, one for blue range - every single from 0 to 255 (hex 0 to FF)
so the colour in hex looks like
If you want to set for example red to zero, use
If you want to force blue to be full-on, use
1- now you can show my_bitmap
2- now my_bitmap have about 50% more light
3- you can change (mul, add) to understand how work
4- also can use my_paint in other graphic method