Android examples for Graphics:Change Color
change Color by multiplier
//package com.java2s; import android.graphics.Color; public class Main { public static int changeColor(int color, float multiplier) { int red = Color.red(color); int blue = Color.blue(color); int green = Color.green(color); return Color.rgb((int) (red * multiplier), (int) (green * multiplier), (int) (blue * multiplier)); }//from w w w . j a va 2s. c om }