IIXC_Page::DrawToDC Method
From PDF XChange PDF SDK
Line 33: | Line 33: | ||
:[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 | ;dwFlags | ||
− | :[in, defaultvalue(0)] Specifies the combination of [[PXV:IXC_DrawFlags| | + | :[in, defaultvalue(0)] Specifies the combination of [[PXV:IXC_DrawFlags|IXC_DrawFlags]] which define how the image should be drawn. |
== Return Value == | == Return Value == |
Revision as of 13:12, 19 May 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.
Contents
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 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.