Java tutorial
//package com.java2s; import android.graphics.ColorMatrix; import android.graphics.ColorMatrixColorFilter; public class Main { private static ColorMatrixColorFilter getBrightnessMatrixColorFilter(float brightness) { ColorMatrix matrix = new ColorMatrix(); matrix.set(new float[] { 1, 0, 0, 0, brightness, 0, 1, 0, 0, brightness, 0, 0, 1, 0, brightness, 0, 0, 0, 1, 0 }); return new ColorMatrixColorFilter(matrix); } }