IIXC_Page::SetPixelIndex Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IIXC_Page::SetPixelIndex Method}}
 
{{#customTitle:IIXC_Page::SetPixelIndex Method}}
{{#parentPage:PXV:IIXC_Page|SetPixelIndex Method|method}}
+
{{#parentPage:PXV:IIXC_Page#Methods|SetPixelIndex|method}}
{{ToWrite}}
+
{{ToReview}}
+
  
The method of interface of PDF-XChange Editor SDK.
+
The '''SetPixelIndex''' method sets the palette index for a specified pixel in an indexed page that has a palette.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT SetPixelIndex([in]  LONG  ptX,
+
<pre class="brush:cpp;gutter:false">HRESULT SetPixelIndex([in]  LONG  nX,
                       [in]  LONG  ptY,
+
                       [in]  LONG  nY,
 
                       [in]  LONG  nIndex);</pre>
 
                       [in]  LONG  nIndex);</pre>
  
 
== Parameters ==
 
== Parameters ==
;ptX
+
;nX
:[in]  Value of LONG.
+
:[in]  Specifies the x-coordinate of the pixel to be set.
;ptY
+
;nY
:[in]  Value of LONG.
+
:[in]  Specifies the y-coordinate of the pixel to be set.
 
;nIndex
 
;nIndex
:[in]  Value of LONG.
+
:[in]  Specifies the zero-based index of the color in the page's palette.
  
 
== Return Value ==
 
== Return Value ==
Line 24: Line 23:
  
 
== See Also ==
 
== See Also ==
:[[PXV:IIXC_Page|IIXC_Page]]
+
[[PXV:IIXC_Page|IIXC_Page]]
:[[PXV:IIXC_Page_GetPixel|IIXC_Page::GetPixel]]
+
:[[PXV:IIXC_Page_SetPixel|IIXC_Page::SetPixel]]
+
:[[PXV:IIXC_Page_GetPixelIndex|IIXC_Page::GetPixelIndex]]
+

Latest revision as of 02:17, 15 June 2015

The SetPixelIndex method sets the palette index for a specified pixel in an indexed page that has a palette.

Syntax

HRESULT SetPixelIndex([in]  LONG  nX,
                      [in]  LONG  nY,
                      [in]  LONG  nIndex);

Parameters

nX
[in] Specifies the x-coordinate of the pixel to be set.
nY
[in] Specifies the y-coordinate of the pixel to be set.
nIndex
[in] Specifies the zero-based index of the color in the page's palette.

Return Value

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

See Also

IIXC_Page