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

GdiGraphics.SetClip Method (Region, CombineMode)

Replaces current clipping region for this GdiGraphics object with given Region using specified set-theoretic operation.

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

Syntax

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

Parameters

clipRegion

Type: System.Drawing.Region

Region structure specifying new clipping region.
combineMode

Type: System.Drawing.Drawing2D.CombineMode

CombineMode value defining set-theoretic operation used to combine given rectangle with current clipping region.

Remarks

You can also modify the 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