IIXC_Page::StretchDraw2 Method
From PDF XChange PDF SDK
(Automatic page editing by robot) |
|||
Line 5: | Line 5: | ||
{{ToReview}} | {{ToReview}} | ||
− | The method of | + | The method copies the color data for a rectangle of pixels from a page to the specified destination rectangle. If the destination rectangle is larger than the source rectangle, this function stretches the rows and columns of color data to fit the destination rectangle. If the destination rectangle is smaller than the source rectangle, this function compresses the rows and columns by using the specified raster operation. |
== Syntax == | == Syntax == | ||
Line 19: | Line 19: | ||
== Parameters == | == Parameters == | ||
;hDC | ;hDC | ||
− | :[in] | + | :[in] Specifies the handle of the device context. |
;pDestRect | ;pDestRect | ||
− | :[in] Pointer to RECT. | + | :[in] Pointer to RECT structure that defines the destination rectangle on the device context. |
;nSrcLeft | ;nSrcLeft | ||
− | :[in] | + | :[in] specifies the x-coordinate of the left-top corner of the affected rectangle in the source page. |
;nSrcTop | ;nSrcTop | ||
− | :[in] | + | :[in] specifies the y-coordinate of the left-top corner of the affected rectangle in the source page. |
;nSrcRight | ;nSrcRight | ||
− | :[in] | + | :[in] specifies the x-coordinate of the right-bottom corner of the affected rectangle in the source page. |
;nSrcBottom | ;nSrcBottom | ||
− | :[in] | + | :[in] specifies the y-coordinate of the right-bottom corner of the affected rectangle in the source page. |
;nScaleMethod | ;nScaleMethod | ||
− | :[in] Value of [[PXV:IXC_ScaleMethod|IXC_ScaleMethod]]. | + | :[in] Value of [[PXV:IXC_ScaleMethod|IXC_ScaleMethod]] specifies the method which will be used for scaling the image. |
;dwFlags | ;dwFlags | ||
− | :[in, defaultvalue(0)] | + | :[in, defaultvalue(0)] Specifies the combination of [[PXV:IXC_DrawFlags|flags]] which define how the image should be drawn. |
== Return Value == | == Return Value == |
Revision as of 04:03, 30 April 2015
The method copies the color data for a rectangle of pixels from a page to the specified destination rectangle. If the destination rectangle is larger than the source rectangle, this function stretches the rows and columns of color data to fit the destination rectangle. If the destination rectangle is smaller than the source rectangle, this function compresses the rows and columns by using the specified raster operation.
Contents
Syntax
HRESULT StretchDraw2([in] HANDLE_T hDC, [in] RECT* pDestRect, [in] double nSrcLeft, [in] double nSrcTop, [in] double nSrcRight, [in] double nSrcBottom, [in] IXC_ScaleMethod nScaleMethod, [in, defaultvalue(0)] ULONG dwFlags);
Parameters
- hDC
- [in] Specifies the handle of the device context.
- pDestRect
- [in] Pointer to RECT structure that defines the destination rectangle on the device context.
- nSrcLeft
- [in] specifies the x-coordinate of the left-top corner of the affected rectangle in the source page.
- nSrcTop
- [in] specifies the y-coordinate of the left-top corner of the affected rectangle in the source page.
- nSrcRight
- [in] specifies the x-coordinate of the right-bottom corner of the affected rectangle in the source page.
- nSrcBottom
- [in] specifies the y-coordinate of the right-bottom corner of the affected rectangle in the source page.
- nScaleMethod
- [in] Value of IXC_ScaleMethod specifies the method which will be used for scaling the image.
- 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
See also IIXC_Page.