IIXC_Page::DrawToDC Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IIXC_Page::DrawToDC Method}}
 
{{#customTitle:IIXC_Page::DrawToDC Method}}
{{#parentPage:PXV:IIXC_Page|DrawToDC Method|method}}
+
{{#parentPage:PXV:IIXC_Page#Methods|DrawToDC|method}}
 
+
{{ToReview}}
+
  
 
The method draws the pixels in the specified rectangle to the device that is associated with the destination device context using color data from a specified page.
 
The method draws the pixels in the specified rectangle to the device that is associated with the destination device context using color data from a specified page.
Line 11: Line 10:
 
                 [in]                  LONG      nXDest,
 
                 [in]                  LONG      nXDest,
 
                 [in]                  LONG      nYDest,
 
                 [in]                  LONG      nYDest,
                 [in]                  LONG      dwWidth,
+
                 [in]                  LONG      nWidth,
                 [in]                  LONG      dwHeight,
+
                 [in]                  LONG      nHeight,
 
                 [in]                  LONG      nXSrc,
 
                 [in]                  LONG      nXSrc,
 
                 [in]                  LONG      nYSrc,
 
                 [in]                  LONG      nYSrc,
                 [in, defaultvalue(0)]  ULONG    dwFlags);</pre>
+
                 [in, defaultvalue(0)]  ULONG    nFlags);</pre>
  
 
== Parameters ==
 
== Parameters ==
Line 24: Line 23:
 
;nYDest
 
;nYDest
 
:[in]  Specifies the y-coordinate, in pixels, of the upper-left corner of the destination rectangle.
 
:[in]  Specifies the y-coordinate, in pixels, of the upper-left corner of the destination rectangle.
;dwWidth
+
;nWidth
 
:[in]  Specifies the width, in pixels, of the rectangle where image should be drawn.
 
:[in]  Specifies the width, in pixels, of the rectangle where image should be drawn.
;dwHeight
+
;nHeight
 
:[in]  Specifies the height, in pixels, of the rectangle where image should be drawn.
 
:[in]  Specifies the height, in pixels, of the rectangle where image should be drawn.
 
;nXSrc
 
;nXSrc
Line 32: Line 31:
 
;nYSrc
 
;nYSrc
 
:[in]  Specifies the y-coordinate, in pixels, of the upper-left corner of the source rectangle.
 
:[in]  Specifies the y-coordinate, in pixels, of the upper-left corner of the source rectangle.
;dwFlags
+
;nFlags
:[in, defaultvalue(0)]  Specifies the combination of [[PXV:IXC_DrawFlags|flags]] which define how the image should be drawn.
+
:[in, defaultvalue(0)]  Specifies the combination of [[PXV:IXC_DrawFlags|IXC_DrawFlags]] which define how the image should be drawn.
  
 
== Return Value ==
 
== Return Value ==
Line 39: Line 38:
  
 
== See Also ==
 
== See Also ==
:[[PXV:IIXC_Page|IIXC_Page]]
+
[[PXV:IIXC_Page|IIXC_Page]]
:[[PXV:IIXC_Page_PrintToDC|IIXC_Page:PrintToDC]]
+
:[[PXV:IIXC_Page_StretchDraw|IIXC_Page:StretchDraw]]
+
:[[PXV:IIXC_Page_StretchDraw2|IIXC_Page:StretchDraw2]]
+
:[[PXV:IXC_DrawFlags|IXC_DrawFlags]]
+

Latest revision as of 03:16, 15 June 2015

The method draws the pixels in the specified rectangle to 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      nWidth,
                 [in]                   LONG      nHeight,
                 [in]                   LONG      nXSrc,
                 [in]                   LONG      nYSrc,
                 [in, defaultvalue(0)]  ULONG     nFlags);

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.
nWidth
[in] Specifies the width, in pixels, of the rectangle where image should be drawn.
nHeight
[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.
nFlags
[in, defaultvalue(0)] Specifies the combination of IXC_DrawFlags 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