| 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.ContentAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax 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 Exception | 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