Click or drag to resize

PdfiumFPDFColorSpace_SetCMYK Method

Set the CMYK component values to the specified color defined in the specified color space.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static bool FPDFColorSpace_SetCMYK(
	IntPtr colorSpace,
	out float[] color,
	float C,
	float M,
	float Y,
	float K
)

Parameters

colorSpace  IntPtr
Handle to the color space object. Returned by FPDFColorSpace_GetStockCS(ColorTypes), FPDFColorSpace_ColorspaceFromName(String), FPDFColorSpace_GetBaseCS(IntPtr) or FPDFColorSpace_Load(IntPtr, IntPtr, IntPtr) function.
color  Single
Gets the color defined in the specified colorSpace.
C  Single
The Cayan component to set to the specified color.
M  Single
The Magenta component to set to the specified color.
Y  Single
The Yellow component to set to the specified color.
K  Single
The Key component to set to the specified color.

Return Value

Boolean
false if any error occurred.
Remarks
The CMYK components are translated to the specified color space.
See Also