IIXC_Page::DrawToDC Method

From Tracker Software PDF SDK
Jump to: navigation, search
(Automatic page editing by robot)
 
Line 5: Line 5:
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
The method sets the pixels in the specified rectangle on the device that is associated with the destination device context using color data from a specified page.
  
 
== Syntax ==
 
== Syntax ==
Line 19: Line 19:
 
== Parameters ==
 
== Parameters ==
 
;hDC
 
;hDC
:[in]  Value of HANDLE_T.
+
:[in]  Specifies the handle of the GDI device context.
 
;nXDest
 
;nXDest
:[in]  Value of LONG.
+
:[in]  Specifies the x-coordinate, in pixels, of the upper-left corner of the destination rectangle.
 
;nYDest
 
;nYDest
:[in]  Value of LONG.
+
:[in]  Specifies the y-coordinate, in pixels, of the upper-left corner of the destination rectangle.
 
;dwWidth
 
;dwWidth
:[in]  Value of LONG.
+
:[in]  Specifies the width, in pixels, of the rectangle where image should be drawn.
 
;dwHeight
 
;dwHeight
:[in]  Value of LONG.
+
:[in]  Specifies the height, in pixels, of the rectangle where image should be drawn.
 
;nXSrc
 
;nXSrc
:[in]  Value of LONG.
+
:[in]  Specifies the x-coordinate, in pixels, of the upper-left corner of the source rectangle.
 
;nYSrc
 
;nYSrc
:[in]  Value of LONG.
+
:[in]  Specifies the y-coordinate, in pixels, of the upper-left corner of the source rectangle.
 
;dwFlags
 
;dwFlags
:[in, defaultvalue(0)]  Value of ULONG.
+
:[in, defaultvalue(0)]  Specifies the combination of [[PXV:IXC_DrawFlags|flags]] which define how the image should be drawn.
  
 
== Return Value ==
 
== Return Value ==
Line 39: Line 39:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IIXC_Page|IIXC_Page]].
+
:[[PXV:IIXC_Page|IIXC_Page]]
 +
:[[PXV:IXC_DrawFlags|IXC_DrawFlags]]

Revision as of 01:38, 30 April 2015


The method sets the pixels in the specified rectangle on the device that is associated with the destination device context using color data from a specified page.

Syntax

HRESULT DrawToDC([in]                   HANDLE_T  hDC,
                 [in]                   LONG      nXDest,
                 [in]                   LONG      nYDest,
                 [in]                   LONG      dwWidth,
                 [in]                   LONG      dwHeight,
                 [in]                   LONG      nXSrc,
                 [in]                   LONG      nYSrc,
                 [in, defaultvalue(0)]  ULONG     dwFlags);

Parameters

hDC
[in] Specifies the handle of the GDI device context.
nXDest
[in] Specifies the x-coordinate, in pixels, of the upper-left corner of the destination rectangle.
nYDest
[in] Specifies the y-coordinate, in pixels, of the upper-left corner of the destination rectangle.
dwWidth
[in] Specifies the width, in pixels, of the rectangle where image should be drawn.
dwHeight
[in] Specifies the height, in pixels, of the rectangle where image should be drawn.
nXSrc
[in] Specifies the x-coordinate, in pixels, of the upper-left corner of the source rectangle.
nYSrc
[in] Specifies the y-coordinate, in pixels, of the upper-left corner of the source rectangle.
dwFlags
[in, defaultvalue(0)] Specifies the combination of flags which define how the image should be drawn.

Return Value

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

See Also

IIXC_Page
IXC_DrawFlags