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

GdiGraphics.SetClip Method (RectangleF)

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 RectangleF _
)
C#
public void SetClip(
	RectangleF clipRectangle
)

Parameters

clipRectangle

Type: System.Drawing.RectangleF

Rectangle structure specifying new clipping region.

Remarks

You can modify new clipping region later through ExcludeClip(RectangleF), IntersectClip(RectangleF) 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