Code example for Region

Methods: setPath

0
    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() { 
        mClosedTempPath.reset();
        mClosedTempPath.set(mPath);
        mClosedTempPath.close();
    } 
 
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public Shape clone() {
Connect your IDE to all the code out there  Get Codota for Java