clip

abstract fun clip(rectangle: Rectangle, radius: Double = 0.0, block: Canvas.() -> Unit)

Clips the operations within block within the given rectangle.

Parameters

rectangle

to clip within

block

to be clipped


abstract fun clip(polygon: Polygon, block: Canvas.() -> Unit)

Clips the operations within block within the given polygon.

Parameters

polygon

to clip within

block

to be clipped


abstract fun clip(ellipse: Ellipse, block: Canvas.() -> Unit)

Clips the operations within block within the given ellipse.

Parameters

ellipse

to clip within

block

to be clipped


abstract fun clip(path: Path, block: Canvas.() -> Unit)

Clips the operations within block within the given path.

Parameters

path

to clip within

block

to be clipped