Graphics.SetClip Method (Rectangle, CombineMode)

Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.

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

Syntax

C#
public void SetClip(
	Rectangle clipRectangle,
	CombineMode combineMode
)

Parameters

clipRectangle

Type: System.Drawing.Rectangle

A Rectangle structure to combine.
combineMode

Type: System.Drawing.Drawing2D.CombineMode

A member of the CombineMode enumeration that specifies the combining operation to use.

Remarks

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

See Also

Reference