IIXC_Page::SetPixelIndex Method

From Tracker Software PDF SDK
Jump to: navigation, search
Line 2: Line 2:
 
{{#customTitle:IIXC_Page::SetPixelIndex Method}}
 
{{#customTitle:IIXC_Page::SetPixelIndex Method}}
 
{{#parentPage:PXV:IIXC_Page|SetPixelIndex Method|method}}
 
{{#parentPage:PXV:IIXC_Page|SetPixelIndex Method|method}}
{{ToWrite}}
+
 
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
The method sets the palette index for a specified pixel in an indexed page that has a palette.
  
 
== Syntax ==
 
== Syntax ==
Line 14: Line 14:
 
== Parameters ==
 
== Parameters ==
 
;ptX
 
;ptX
:[in]  Value of LONG.
+
:[in]  Specifies the x-coordinate of the pixel to be set.
 
;ptY
 
;ptY
:[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 ==

Revision as of 05:27, 30 April 2015


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

Syntax

HRESULT SetPixelIndex([in]  LONG  ptX,
                      [in]  LONG  ptY,
                      [in]  LONG  nIndex);

Parameters

ptX
[in] Specifies the x-coordinate of the pixel to be set.
ptY
[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
IIXC_Page::GetPixel
IIXC_Page::SetPixel
IIXC_Page::GetPixelIndex