inClip

inline fun Canvas.inClip(rect: RectF, block: () -> Unit)

Clips the given rect in the receiver Canvas, runs the block, and releases the clip.

See also


inline fun Canvas.inClip(left: Float, top: Float, right: Float, bottom: Float, block: () -> Unit)

Clips the given rectangle in the receiver Canvas, runs the block, and releases the clip.

See also