IColor::GetCMYK Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(5 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IColor::GetCMYK Method}}
 
{{#customTitle:IColor::GetCMYK Method}}
{{#parentPage:PXV:IColor|GetCMYK Method|method}}
+
{{#parentPage:PXV:IColor#Methods|GetCMYK|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Gets CMYK value of the color.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT GetCMYK([out]  float*  pC,
+
<pre class="brush:cpp;gutter:false">HRESULT GetCMYK([out]  float*  nC,
                 [out]  float*  pM,
+
                 [out]  float*  nM,
                 [out]  float*  pY,
+
                 [out]  float*  nY,
                 [out]  float*  pK);</pre>
+
                 [out]  float*  nK);</pre>
  
 
== Parameters ==
 
== Parameters ==
;pC
+
;nC
:[out]  Pointer to float.
+
:[out]  Pointer to float containing the Cyan value of the color. Can vary between '''0''' and '''1'''.
;pM
+
;nM
:[out]  Pointer to float.
+
:[out]  Pointer to float containing the Magenta value of the color. Can vary between '''0''' and '''1'''.
;pY
+
;nY
:[out]  Pointer to float.
+
:[out]  Pointer to float containing the Yellow value of the color. Can vary between '''0''' and '''1'''.
;pK
+
;nK
:[out]  Pointer to float.
+
:[out]  Pointer to float containing the Key(Black) value of the color. Can vary between '''0''' and '''1'''.
  
 
== Return Value ==
 
== Return Value ==
Line 28: Line 27:
  
 
== See Also ==
 
== See Also ==
[[PXV:IColor|IColor]].
+
[[PXV:IColor|IColor]]

Latest revision as of 03:23, 16 March 2017


Gets CMYK value of the color.

Syntax

HRESULT GetCMYK([out]  float*  nC,
                [out]  float*  nM,
                [out]  float*  nY,
                [out]  float*  nK);

Parameters

nC
[out] Pointer to float containing the Cyan value of the color. Can vary between 0 and 1.
nM
[out] Pointer to float containing the Magenta value of the color. Can vary between 0 and 1.
nY
[out] Pointer to float containing the Yellow value of the color. Can vary between 0 and 1.
nK
[out] Pointer to 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