Code example for Path

Methods: computeBoundsreset

0
     
    /** 
     * Clears all lines. 
     */ 
    public void reset() { 
        mPath.reset();
        update(); 
    } 
 
    /** 
     * Updates the internal data required to draw. 
     */ 
    public void update() { 
        updateTempPath(); 
         
        RectF rect = new RectF();
        mPath.computeBounds(rect, false);
        mRegion = new Region((int) rect.left, (int) rect.top, (int) rect.right, (int) rect.bottom);
        mRegion.setPath(mClosedTempPath, mRegion);
    } 
 
    private void updateTempPath() { 
Connect your IDE to all the code out there  Get Codota for Java