PdfDrawingSurfaceClip Method (PdfFillMethod, Boolean) |
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,
bool keepPath
)
Public MustOverride Sub Clip (
fillMethod As PdfFillMethod,
keepPath As Boolean
)
Parameters
- fillMethod
- Type: Atalasoft.PdfDoc.Generating.RenderingPdfFillMethod
The fill method to use for the path. - keepPath
- Type: SystemBoolean
True if the clipping path should be kept as the current path, false otherwise
Examples writer.GSave();
drawingSurface.AddPath(clippingRegion);
drawingSurface.Clip(PdfFillMethod.EvenOdd);
PlaceClippedShapes();
writer.GRestore();
See Also