core-ktx / androidx.graphics / android.graphics.RectF / toRect

toRect

inline fun RectF.toRect(): Rect

Returns a Rect representation of this rectangle. The resulting rect will be sized such that this rect can fit within it.