IColor::SetCMYK Method

From PDF XChange PDF SDK
Revision as of 03:23, 16 March 2017 by Palamar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Sets CMYK value of the color.

Syntax

HRESULT SetCMYK([in]  float  nC,
                [in]  float  nM,
                [in]  float  nY,
                [in]  float  nK);

Parameters

nC
[in] Value of float containing the Cyan value of the color. Can vary between 0 and 1.
nM
[in] Value of float containing the Magenta value of the color. Can vary between 0 and 1.
nY
[in] Value of float containing the Yellow value of the color. Can vary between 0 and 1.
nK
[in] Value of float containing the Key(Black) value of the color. Can vary between 0 and 1.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IColor