IIXC_Page::StretchDraw Method

From Tracker Software PDF SDK
Jump to: navigation, search
Line 2: Line 2:
 
{{#customTitle:IIXC_Page::StretchDraw Method}}
 
{{#customTitle:IIXC_Page::StretchDraw Method}}
 
{{#parentPage:PXV:IIXC_Page|StretchDraw Method|method}}
 
{{#parentPage:PXV:IIXC_Page|StretchDraw Method|method}}
{{ToWrite}}
+
 
 
{{ToReview}}
 
{{ToReview}}
  
Line 33: Line 33:
 
:[[PXV:IIXC_Page_DrawToDC|IIXC_Page:DrawToDC]]
 
:[[PXV:IIXC_Page_DrawToDC|IIXC_Page:DrawToDC]]
 
:[[PXV:IIXC_Page_PrintToDC|IIXC_Page:PrintToDC]]
 
:[[PXV:IIXC_Page_PrintToDC|IIXC_Page:PrintToDC]]
 +
:[[PXV:IIXC_Page_StretchDraw2|IIXC_Page:StretchDraw2]]
 
:[[PXV:IXC_ScaleMethod|IXC_ScaleMethod]]
 
:[[PXV:IXC_ScaleMethod|IXC_ScaleMethod]]
 
:[[PXV:IXC_DrawFlags|IXC_DrawFlags]]
 
:[[PXV:IXC_DrawFlags|IXC_DrawFlags]]

Revision as of 04:08, 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.

Syntax

HRESULT StretchDraw([in]                   HANDLE_T         hDC,
                    [in]                   RECT*            pDestRect,
                    [in]                   RECT*            pSrcRect,
                    [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.
pSrcRect
[in] Pointer to RECT structure that defines the source rectangle in the image 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

IIXC_Page
IIXC_Page:DrawToDC
IIXC_Page:PrintToDC
IIXC_Page:StretchDraw2
IXC_ScaleMethod
IXC_DrawFlags