This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.SetClip Method (Region)

Replaces current clipping region for this GdiGraphics object with given Region.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub SetClip ( _
	clipRegion As Region _
)
C#
public void SetClip(
	Region clipRegion
)

Parameters

clipRegion

Type: System.Drawing.Region

Region structure specifying new clipping region.

Remarks

You can modify new clipping region later through ExcludeClip(Region), IntersectClip(Region) and TranslateClip(Int32, Int32) methods. It also can be discarded with ResetClip() property.

Unlike most other methods of the GdiGraphics class, coordinates of the region are measured in pixels.

See Also

Reference