System.Drawing.Graphics.SetClip Method

Sets the clipping region of this System.Drawing.Graphics to the result of the specified operation combining the current clip region and the specified System.Drawing.Drawing2D.GraphicsPath.

Syntax

public void SetClip (System.Drawing.Drawing2D.GraphicsPath path, System.Drawing.Drawing2D.CombineMode combineMode)

Parameters

path
System.Drawing.Drawing2D.GraphicsPath to combine.
combineMode
Member of the System.Drawing.Drawing2D.CombineMode enumeration that specifies the combining operation to use.

Remarks

If the graphics path represented by the path parameter is not closed, an additional segment is added from the last point to the first point to close the path.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0