Click or drag to resize

PdfColor(PdfColorSpace, Double, Double, Double, Double) Constructor

Initializes a new instance of the PdfColor structure using the specified color space and four 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,
	double colorant4
)

Parameters

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