IColor::SetCMYK Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IColor::SetCMYK Method}} | {{#customTitle:IColor::SetCMYK Method}} | ||
− | {{#parentPage:PXV:IColor|method | + | {{#parentPage:PXV:IColor#Methods|SetCMYK|method}} |
− | + | ||
{{ToReview}} | {{ToReview}} | ||
− | + | Sets CMYK value of the color. | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT SetCMYK([in] float nC, [in] float nM, [in] float nY, [in] float nK);</pre> | + | <pre class="brush:cpp;gutter:false">HRESULT SetCMYK([in] float nC, |
+ | [in] float nM, | ||
+ | [in] float nY, | ||
+ | [in] float nK);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;nC |
− | :[in] Value of float. | + | :[in] Value of float containing the Cyan value of the color. Can vary between '''0''' and '''1'''. |
− | + | ;nM | |
− | :[in] Value of float. | + | :[in] Value of float containing the Magenta value of the color. Can vary between '''0''' and '''1'''. |
− | + | ;nY | |
− | :[in] Value of float. | + | :[in] Value of float containing the Yellow value of the color. Can vary between '''0''' and '''1'''. |
− | + | ;nK | |
− | :[in] Value of float. | + | :[in] Value of float containing the Key(Black) value of the color. Can vary between '''0''' and '''1'''. |
== Return Value == | == Return Value == | ||
Line 24: | Line 27: | ||
== See Also == | == See Also == | ||
− | + | [[PXV:IColor|IColor]] |
Latest revision as of 02:23, 16 March 2017
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.