Click or drag to resize

PdfColorFromCmyk Method

Creates a new PdfColor structure in DeviceCMYK color space by using the specified cyan, magenta, yellow and black values.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.5.5
Syntax
public static PdfColor FromCmyk(
	double cyan,
	double magenta,
	double yellow,
	double black
)

Parameters

cyan  Double
The cyan value in range from 0 to 1.
magenta  Double
The magenta value in range from 0 to 1.
yellow  Double
The yellow value in range from 0 to 1.
black  Double
The black value in range from 0 to 1.

Return Value

PdfColor
A new PdfColor structure in DeviceCMYK color space created by using the specified cyan, magenta, yellow and black values.
Exceptions
ExceptionCondition
ArgumentExceptioncyan, magenta, yellow, or black is either NaN, NegativeInfinity or PositiveInfinity.
See Also