Click or drag to resize

PdfColor(PdfColorSpace, Double) Constructor

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

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

Parameters

space  PdfColorSpace
The color space whose whose Family is not Pattern and ColorantCount is 1.
colorant  Double
The single colorant value.
Exceptions
ExceptionCondition
ArgumentNullExceptionspace is .
ArgumentExceptionspace's Family is Pattern or space's ColorantCount is not 1 or colorant is either NaN, NegativeInfinity or PositiveInfinity.
See Also