CanvasOperationClipPath

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
clip to <mPath> on <mCanvas>
Associationscom.livecode.canvas
Summary

Clip to a path on a canvas.

Parameters
NameTypeDescription
mCanvas

An expression which evaluates to a canvas.

mPath

An expression which evaluates to a path.

Example
// Set the canvas clip
clip to circle path centered at point [100,100] with radius 50 on this canvas

// Fill rectangle path on canvas. only the region of the rectangle that falls within the canvas clip will be rendered.
fill rectangle path of rectangle [25, 25, 75, 75] on this canvas
Description

Modifies the clip of mCanvas by intersecting with mRect. Drawing operations on mCanvas will be confined to the clip region.

Tagscanvas