core-ktx / androidx.graphics / android.graphics.Rect / toRegion

toRegion

inline fun Rect.toRegion(): Region

Returns a Region representation of this rectangle.