Code example for EmbossMaskFilter

0
 
		BlurMaskFilter blur_filter = new BlurMaskFilter(20, BlurMaskFilter.Blur.NORMAL);
		paint.setMaskFilter(blur_filter);
		canvas.drawBitmap(bitmap, 0, 200, paint);
 
		EmbossMaskFilter emboss_filter = new EmbossMaskFilter(new float[] { 1, 1, 1 }, 0.3f, 10, 10);
		paint.setMaskFilter(emboss_filter);
		canvas.drawBitmap(bitmap, 0, 200, paint);
	} 
} 
 
public class MaskTest extends Activity {
	/** Called when the activity is first created. */ 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(new MyView(this));
	} 
}