Code example for EmbossMaskFilter

0
        super.onCreate(savedInstanceState);
        getActionBar().setDisplayHomeAsUpEnabled(true);
        drawingSurface = new DrawingSurface(this);
        setContentView(drawingSurface);
 
        mEmboss = new EmbossMaskFilter(new float[]{1, 1, 1}, 0.4f, 6, 3.5f);
        mBlur = new BlurMaskFilter(8, BlurMaskFilter.Blur.NORMAL);
        drawingSurface.setMaskFiler(mEmboss);
    } 
 
    @Override 
    public boolean onCreateOptionsMenu(final Menu menu) {
        super.onCreateOptionsMenu(menu);
 
        menu.add(0, COLOR_MENU_ID, 0, R.string.menu_color);
        menu.add(0, EMBOSS_MENU_ID, 0, R.string.menu_emboss);
        menu.add(0, BLUR_MENU_ID, 0, R.string.menu_blur);
        menu.add(0, ERASE_MENU_ID, 0, R.string.menu_erase);
        menu.add(0, CLEAR_MENU_ID, 0, R.string.menu_clear);
 
        return true;