| PaintCreate Method |
Create an new paint.
Transparency is supported by PDF 1.4 or higher and by PDF/A-2 or higher.
The returned paint object is not yet used on any page, but it is associated with the given target document.
Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.ContentAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.2.0.0
Syntax public static Paint Create(
Document targetDocument,
ColorSpace colorSpace,
double[] color,
Transparency transparency
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- colorSpace ColorSpace
-
the color space of the paint
- color Double
-
the color components
- transparency Transparency
-
the transparency parameters.
Use to create an opaque paint.
Return Value
Paint
newly created paint object
Exceptions See Also