Click or drag to resize
Pdftools logo

ContentGeneratorPaintPath Method

Paint a path.

The path is first filled and then stroked The blend mode for filling and stroking must be the same.

Namespace: PdfTools.Toolbox.Pdf.Content
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax
C#
public void PaintPath(
	Path path,
	Fill fill,
	Stroke stroke
)

Parameters

path  Path
the path to be painted
fill  Fill
the fill properties or if the path should not be filled
stroke  Stroke
the stroke properties or if the path should not be stroked
Exceptions
ExceptionCondition
InvalidOperationExceptionif the document associated with the content has already been closed
InvalidOperationExceptionif the page/group associated with the content has already been closed
InvalidOperationExceptionif the content object has already been closed
InvalidOperationExceptionif the object has already been closed
ArgumentExceptionif the fill and stroke arguments are both .
ArgumentExceptionif the document associated with the fill object has already been closed
ArgumentExceptionif the fill object belongs to a different document
ArgumentExceptionif the property Paint of argument stroke is .
ArgumentExceptionif the document associated with the property Paint of argument stroke has already been closed.
ArgumentExceptionif the stroke argument belongs to a different document
NotSupportedExceptionif the Paint objects for filling and stroking use different blend modes
ArgumentNullExceptionif path is .
See Also