Skip to content

PdfGraphics.SetClip Method

Overloads

Name Description
SetClip(PdfPath) Sets the clipping region of this graphics to the specified PdfPath.
SetClip(PdfPath,PdfFillMode) Sets the clipping region of this graphics to the specified PdfPath.

SetClip(PdfPath)

Sets the clipping region of this graphics to the specified PdfPath.

C#
public void SetClip(PdfPath path)

Parameters

path PdfPath

PdfPath that represents the new clip region.

Remarks

The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see SaveGraphicsState method) before setting a clipping path and restore the graphics state (see RestoreGraphicsState method) after the clipping path is no longer needed.

SetClip(PdfPath,PdfFillMode)

Sets the clipping region of this graphics to the specified PdfPath.

C#
public void SetClip(PdfPath path, PdfFillMode fillMode)

Parameters

path PdfPath

PdfPath that represents the new clip region.

fillMode PdfFillMode

Path fill mode.

Remarks

The actual clipping path is the intersection of the previous clipping path with this new clipping path. It is recommended to save the graphics state (see SaveGraphicsState method) before setting a clipping path and restore the graphics state (see RestoreGraphicsState method) after the clipping path is no longer needed.