Android Utililty Methods RectF to Rect Convert

List of utility methods to do RectF to Rect Convert

Description

The list of methods to do RectF to Rect Convert are organized into topic(s).

Method

RectrectFToRect(RectF rectF)
rect F To Rect
Rect rect = new Rect();
rectFToRect(rectF, rect);
return rect;
voidrectFToRect(RectF rectF, Rect rect)
rect F To Rect
rect.left = Math.round(rectF.left);
rect.top = Math.round(rectF.top);
rect.right = Math.round(rectF.right);
rect.bottom = Math.round(rectF.bottom);