IIXC_Page::GetChannelPixel Method

From Tracker Software PDF SDK
Jump to: navigation, search
Line 3: Line 3:
 
{{#parentPage:PXV:IIXC_Page|GetChannelPixel Method|method}}
 
{{#parentPage:PXV:IIXC_Page|GetChannelPixel Method|method}}
  
{{ToReview}}
 
  
The method retrieves a value stored into specified color channel at the specified coordinates.
+
The '''GetChannelPixel''' method retrieves a value stored in a selected 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 the [[PXV:IXC_Channel|color channel]] from which information will be retrieved.
 
;nX
 
;nX
 
:[in]  Specifies the x-coordinate of the pixel to be examined.
 
:[in]  Specifies the x-coordinate of the pixel to be examined.

Revision as of 08:21, 18 May 2015


The GetChannelPixel method retrieves a value stored in a selected color channel at the specified coordinates.

Syntax

HRESULT GetChannelPixel([in]           IXC_Channel  nChannel,
                        [in]           LONG         nX,
                        [in]           LONG         nY,
                        [out, retval]  UCHAR*       pValue);

Parameters

nChannel
[in] Specifies the color channel from which information will be retrieved.
nX
[in] Specifies the x-coordinate of the pixel to be examined.
nY
[in] Specifies the y-coordinate of the pixel to be examined.
pValue
[out, retval] Pointer to UCHAR value that receives the value of 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::InvertChannel
IIXC_Page::SetChannelPixel
IXC_Channel