Click or drag to resize

PdfColor(PdfColorSpace, Double, Double, Double) Constructor

Initializes a new instance of the PdfColor structure using the specified color space and three colorant values.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.5.5
Syntax
public PdfColor(
	PdfColorSpace space,
	double colorant1,
	double colorant2,
	double colorant3
)

Parameters

space  PdfColorSpace
The color space whose whose Family is not Pattern and ColorantCount is 3.
colorant1  Double
The first colorant value.
colorant2  Double
The second colorant value.
colorant3  Double
The third colorant value.
Exceptions
ExceptionCondition
ArgumentNullExceptionspace is .
ArgumentExceptionspace's Family is Pattern or space's ColorantCount is not 3 or colorant1, colorant2, or colorant3 is either NaN, NegativeInfinity or PositiveInfinity.
See Also