![Pdftools logo](../icons/pdftools-icon.png) | 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.FourHeights.PdfToolbox.Pdf.ContentAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntaxpublic 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
ExceptionsException | Condition |
---|
InvalidOperationException | if the document associated with the content has already been closed |
InvalidOperationException | if the page/group associated with the content has already been closed |
InvalidOperationException | if the content object has already been closed |
InvalidOperationException | if the object has already been closed |
ArgumentException | if the fill and stroke arguments are both . |
ArgumentException | if the document associated with the fill object has already been closed |
ArgumentException | if the fill object belongs to a different document |
ArgumentException | if the property Paint of argument stroke is . |
ArgumentException | if the document associated with the property Paint of argument stroke has already been closed. |
ArgumentException | if the stroke argument belongs to a different document |
NotSupportedException | if the Paint objects for filling and stroking use different blend modes |
ArgumentNullException | if path is . |
See Also