Click or drag to resize

PdfColor(PdfColorSpace, Double) Constructor

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

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.5.5
Syntax
public PdfColor(
	PdfColorSpace space,
	params double[] colorants
)

Parameters

space  PdfColorSpace
The color space whose whose Family is not Pattern and ColorantCount is equal to the number of colorants.
colorants  Double
The colorant values.
Exceptions
ExceptionCondition
ArgumentNullExceptionspace or colorants is .
ArgumentExceptionspace's Family is Pattern or space's ColorantCount is not equal to the number of colorants or or any element of the colorants array is either NaN, NegativeInfinity or PositiveInfinity.
See Also