SetClipRegion

Category: Images and Rendering

Back to System Functions


Signature

SetClipRegion(x As Integer, y As Integer, width As Integer, height As Integer)

Returns

Void

Description

Restricts subsequent drawing to the specified rectangular region on the current active target.

Use ClearClipRegion to remove the clip region and restore full-target drawing.

Example

Graphics 640, 480 SetClipRegion 32, 32, 200, 120 SetDrawColor 255, 255, 255 DrawFilledRect 0, 0, 640, 480 ClearClipRegion