Android examples for Graphics:Color
color Burn
//package com.java2s; import android.graphics.Color; public class Main { public static int colorBurn(int RGBValue, int value) { int alpha = RGBValue >> 24; int red = RGBValue >> 16 & 0xFF; int green = RGBValue >> 8 & 0xFF; int blue = RGBValue & 0xFF; int v = 1 - value; red = (int) Math.floor(red * v); green = (int) Math.floor(green * v); blue = (int) Math.floor(blue * v); return Color.rgb(red, green, blue); }//from w w w . ja v a 2 s. c o m }