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

GdiGraphics.SetClip Method (RectangleF, CombineMode)

Combines current clipping region with given rectangle using specified set-theoretic operation.

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

Syntax

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

Parameters

clipRectangle

Type: System.Drawing.RectangleF

Rectangle structure which is being combined with current 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 through ExcludeClip(Rectangle), IntersectClip(Rectangle) and TranslateClip(Int32, Int32) methods. Clipping region can be discarded with ResetClip() property.

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

See Also

Reference