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

GdiGraphics.SetClip Method (Rectangle)

Replaces current clipping region for this GdiGraphics object with the rectangular area.

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

Syntax

Visual Basic
Public Sub SetClip ( _
	clipRectangle As Rectangle _
)
C#
public void SetClip(
	Rectangle clipRectangle
)

Parameters

clipRectangle

Type: System.Drawing.Rectangle

Rectangle structure specifying new clipping region.

Remarks

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

All the coordinates are measured in units specified with Unit property.

See Also

Reference