CanvasOperationClip

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

Clip to a rectangle on a canvas.

Parameters
NameTypeDescription
mCanvas

An expression which evaluates to a canvas.

mRect

An expression which evaluates to a rectangle.

Example
// Set the canvas clip
clip to rectangle [50,50,100,100] 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