SetClip

From SwinGame

SetClip clips the area you can draw to the specified rectangle. You will not be able to draw anything outside of the specified rectangle until you reset the state by calling ResetClip. You can also clip the certain part of a bitmap by specifying the bitmap.

Where is it: SGSDK_GRAPHICS

Contents

Languages

Pascal

Added in version 1.1:

procedure SetClip(x, y, w, h: Integer);
procedure SetClip(r: Rectangle);
procedure SetClip(bmp: Bitmap; x, y, w, h: Integer);
procedure SetClip(bmp: Bitmap; r: Rectangle);

C#

Visual Basic .NET

Visual Basic 6

Example

Also See