Code example for Path

0
        } 
        return buffer;
    } 
 
    public static class RegionView extends FrameLayout {
        private final Path mClipPath = new Path();
        private float mClipPosition = 0.0f;
 
        public RegionView(Context c) {
            super(c);
            setAlpha(0.5f);
        } 
 
        public float getClipPosition() { 
            return mClipPosition;
        } 
 
        public void setClipPosition(float clipPosition) {
            mClipPosition = clipPosition;
            invalidate();
        }