Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.PaintFlagsDrawFilter; public class Main { public static Canvas createFilterCanvas(Bitmap bitmap) { Canvas canvas = new Canvas(bitmap); canvas.setDrawFilter(new PaintFlagsDrawFilter(0, 7)); return canvas; } }