Code example for Path

Methods: computeBounds

0
import android.graphics.RectF; 
import android.graphics.Matrix; 
 
public abstract class Gliph { 
    public Gliph() { 
        mPath = new Path();
        mPathBold = new Path();
 
        mBounds = new RectF();
        mBoundsBold = new RectF();
 
        initialize(mPath, false);
        initialize(mPathBold, true);
 
        mPath.computeBounds(mBounds, false);
        mPathBold.computeBounds(mBoundsBold, false);
 
        modifyBounds(mBounds, false);
        modifyBounds(mBoundsBold, true);
    }