Code example for Path

0
        } 
        return buffer;
    } 
 
    public static class RegionView extends FrameLayout {
        private final Path mClipPath = new Path();
        private float mClipPosition = 0.5f;
 
        public RegionView(Context c) {
            super(c);
            setAlpha(0.5f);
        } 
 
        @Override 
        protected void onSizeChanged(int w, int h, int oldw, int oldh) {
            super.onSizeChanged(w, h, oldw, oldh);
            mClipPath.reset();
            mClipPath.addCircle(0.0f, 0.0f, getWidth() / 4.0f, Path.Direction.CW);
        } 
 
        @Override