 | PdfiumFPDFColorSpace_SetCMYK Method |
Set the CMYK component values to the specified color defined in the specified color space.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static bool FPDFColorSpace_SetCMYK(
IntPtr colorSpace,
out float[] color,
float C,
float M,
float Y,
float K
)
Public Shared Function FPDFColorSpace_SetCMYK (
colorSpace As IntPtr,
<OutAttribute> ByRef color As Single(),
C As Single,
M As Single,
Y As Single,
K As Single
) As Boolean
public:
static bool FPDFColorSpace_SetCMYK(
IntPtr colorSpace,
[OutAttribute] array<float>^% color,
float C,
float M,
float Y,
float K
)
static member FPDFColorSpace_SetCMYK :
colorSpace : IntPtr *
color : float32[] byref *
C : float32 *
M : float32 *
Y : float32 *
K : float32 -> bool
public static boolean FPDFColorSpace_SetCMYK(
IntPtr colorSpace,
/** @attribute OutAttribute */ /** @ref */float[] color,
float C,
float M,
float Y,
float K
)
Patagames.Pdf.Pdfium.FPDFColorSpace_SetCMYK = function(colorSpace, color, C, M, Y, 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
Booleanfalse if any error occurred.
RemarksThe CMYK components are translated to the specified color space.
See Also