Click or drag to resize

PdfDrawingSurfaceClip Method (PdfFillMethod)

Reduces the clipping area of the current drawing surface by intersecting the current path with the current clipping area. Clipping is a strictly reductive process. To preserve previous clipping areas, use the GSave and GRestore methods in PdfPageRenderer.

Namespace:  Atalasoft.PdfDoc.Generating.Rendering
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public abstract void Clip(
	PdfFillMethod fillMethod
)

Parameters

fillMethod
Type: Atalasoft.PdfDoc.Generating.RenderingPdfFillMethod
The fill method to use for the path.
Examples
writer.GSave();
drawingSurface.AddPath(clippingRegion);
drawingSurface.Clip(PdfFillMethod.EvenOdd);
PlaceClippedShapes();
writer.GRestore();
See Also