IIXC_Page::SetChannelPixel Method

From PDF XChange PDF SDK
Jump to: navigation, search
Line 3: Line 3:
 
{{#parentPage:PXV:IIXC_Page|SetChannelPixel Method|method}}
 
{{#parentPage:PXV:IIXC_Page|SetChannelPixel Method|method}}
  
{{ToReview}}
 
  
The method sets a value of specified color channel at the specified coordinates.
+
The '''SetChannelPixel''' method sets a value of specified color channel at the specified coordinates.
  
 
== Syntax ==
 
== Syntax ==
Line 15: Line 14:
 
== Parameters ==
 
== Parameters ==
 
;nChannel
 
;nChannel
:[in]  Specifies color [[PXV:IXC_Channel|channel]] from which information will be retrieved.
+
:[in]  Specifies color [[PXV:IXC_Channel|Color Channel]] to which information will be set.
 
;nX
 
;nX
 
:[in]  Specifies the x-coordinate of the pixel to be set.
 
:[in]  Specifies the x-coordinate of the pixel to be set.
Line 21: Line 20:
 
:[in]  Specifies the y-coordinate of the pixel to be set.
 
:[in]  Specifies the y-coordinate of the pixel to be set.
 
;nValue
 
;nValue
:[in]  the value of color channel at specified pixel.
+
:[in]  The value to set the color channel at specified pixel.
  
 
== Return Value ==
 
== Return Value ==

Revision as of 13:11, 18 May 2015


The SetChannelPixel method sets a value of specified color channel at the specified coordinates.

Syntax

HRESULT SetChannelPixel([in]  IXC_Channel  nChannel,
                        [in]  LONG         nX,
                        [in]  LONG         nY,
                        [in]  UCHAR        nValue);

Parameters

nChannel
[in] Specifies color Color Channel to which information will be set.
nX
[in] Specifies the x-coordinate of the pixel to be set.
nY
[in] Specifies the y-coordinate of the pixel to be set.
nValue
[in] The value to set the color channel at specified pixel.

Return Value

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

See Also

IIXC_Page
IIXC_Page::CopyChannel
IIXC_Page::FillChannel
IIXC_Page::GetChannelPixel
IIXC_Page::InvertChannel
IXC_Channel