Java tutorial
//package com.java2s; import android.graphics.ColorMatrix; import android.graphics.ColorMatrixColorFilter; public class Main { public static ColorMatrixColorFilter brightIt(int fb) { ColorMatrix cmB = new ColorMatrix(); cmB.set(new float[] { 1, 0, 0, 0, fb, 0, 1, 0, 0, fb, 0, 0, 1, 0, fb, 0, 0, 0, 1, 0 }); ColorMatrix colorMatrix = new ColorMatrix(); colorMatrix.set(cmB); ColorMatrixColorFilter f = new ColorMatrixColorFilter(colorMatrix); return f; } }