isRect

val isRect: Rect?

Returns Rect if Path is equivalent to Rect when filled.

rect may be smaller than the Path bounds. Path bounds may include PathVerb.MOVE points that do not alter the area drawn by the returned rect.

Return

bounds if Path contains Rect, null otherwise

See also