IIXC_Page::DrawToDC Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
m (Automatic page editing by robot) |
||
Line 7: | Line 7: | ||
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT DrawToDC([in] HANDLE_T | + | <pre class="brush:cpp;gutter:false">HRESULT DrawToDC([in] HANDLE_T hDC, |
− | [in] LONG | + | [in] LONG XDest, |
− | [in] LONG | + | [in] LONG YDest, |
− | [in] LONG | + | [in] LONG Width, |
− | [in] LONG | + | [in] LONG Height, |
− | [in] LONG | + | [in] LONG XSrc, |
− | [in] LONG | + | [in] LONG YSrc, |
− | [in, defaultvalue(0)] ULONG | + | [in, defaultvalue(0)] ULONG Flags);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;hDC |
:[in] Specifies the handle of the GDI device context. | :[in] Specifies the handle of the GDI device context. | ||
− | ; | + | ;XDest |
:[in] Specifies the x-coordinate, in pixels, of the upper-left corner of the destination rectangle. | :[in] Specifies the x-coordinate, in pixels, of the upper-left corner of the destination rectangle. | ||
− | ; | + | ;YDest |
:[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. | ||
− | ; | + | ;Width |
:[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. | ||
− | ; | + | ;Height |
:[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. | ||
− | ; | + | ;XSrc |
:[in] Specifies the x-coordinate, in pixels, of the upper-left corner of the source rectangle. | :[in] Specifies the x-coordinate, in pixels, of the upper-left corner of the source rectangle. | ||
− | ; | + | ;YSrc |
:[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. | ||
− | ; | + | ;Flags |
:[in, defaultvalue(0)] Specifies the combination of [[PXV:IXC_DrawFlags|IXC_DrawFlags]] 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. | ||
Revision as of 05:50, 12 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 XDest, [in] LONG YDest, [in] LONG Width, [in] LONG Height, [in] LONG XSrc, [in] LONG YSrc, [in, defaultvalue(0)] ULONG Flags);
Parameters
- hDC
- [in] Specifies the handle of the GDI device context.
- XDest
- [in] Specifies the x-coordinate, in pixels, of the upper-left corner of the destination rectangle.
- YDest
- [in] Specifies the y-coordinate, in pixels, of the upper-left corner of the destination rectangle.
- Width
- [in] Specifies the width, in pixels, of the rectangle where image should be drawn.
- Height
- [in] Specifies the height, in pixels, of the rectangle where image should be drawn.
- XSrc
- [in] Specifies the x-coordinate, in pixels, of the upper-left corner of the source rectangle.
- YSrc
- [in] Specifies the y-coordinate, in pixels, of the upper-left corner of the source rectangle.
- Flags
- [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.