Code example for EmbossMaskFilter

0
        mPaint.setStyle(Paint.Style.STROKE);
        mPaint.setStrokeJoin(Paint.Join.ROUND);
        mPaint.setStrokeCap(Paint.Cap.ROUND);
        mPaint.setStrokeWidth(6);
        mEmboss = new EmbossMaskFilter(new float[] { 1, 1, 1 },
                                       0.4f, 6, 3.5f);         
    } 
     
    private Paint       mPaint;
    private MaskFilter  mEmboss;    
    private Canvas      mCanvas;
    private Path        mPath;
    private Paint       mBitmapPaint;    
     
    public void colorChanged(int color) {
        mPaint.setColor(color);
    } 
 
    public class MyView extends View {
         
Experience pair programming with AI  Get Codota for Java