IIXC_Page::StretchDraw2 Method

From Tracker Software PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IIXC_Page::StretchDraw2 Method}}
 
{{#customTitle:IIXC_Page::StretchDraw2 Method}}
{{#parentPage:PXV:IIXC_Page|StretchDraw2 Method|method}}
+
{{#parentPage:PXV:IIXC_Page#Methods|StretchDraw2|method}}
 
+
  
 
The '''StretchDraw2''' 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.
 
The '''StretchDraw2''' 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.
Line 8: Line 8:
 
== Syntax ==
 
== Syntax ==
 
<pre class="brush:cpp;gutter:false">HRESULT StretchDraw2([in]                  HANDLE_T        hDC,
 
<pre class="brush:cpp;gutter:false">HRESULT StretchDraw2([in]                  HANDLE_T        hDC,
                     [in]                  RECT*            pDestRect,
+
                     [in]                  RECT*            stDestRect,
 
                     [in]                  double          nSrcLeft,
 
                     [in]                  double          nSrcLeft,
 
                     [in]                  double          nSrcTop,
 
                     [in]                  double          nSrcTop,
Line 14: Line 14:
 
                     [in]                  double          nSrcBottom,
 
                     [in]                  double          nSrcBottom,
 
                     [in]                  IXC_ScaleMethod  nScaleMethod,
 
                     [in]                  IXC_ScaleMethod  nScaleMethod,
                     [in, defaultvalue(0)]  ULONG            dwFlags);</pre>
+
                     [in, defaultvalue(0)]  ULONG            nFlags);</pre>
  
 
== Parameters ==
 
== Parameters ==
 
;hDC
 
;hDC
 
:[in]  Specifies the handle of the device context.
 
:[in]  Specifies the handle of the device context.
;pDestRect
+
;stDestRect
 
:[in]  Pointer to RECT structure that defines the destination rectangle on the device context.
 
:[in]  Pointer to RECT structure that defines the destination rectangle on the device context.
 
;nSrcLeft
 
;nSrcLeft
Line 31: Line 31:
 
;nScaleMethod
 
;nScaleMethod
 
:[in]  Value of [[PXV:IXC_ScaleMethod|IXC_ScaleMethod]] specifies the method which will be used for scaling the image.
 
:[in]  Value of [[PXV:IXC_ScaleMethod|IXC_ScaleMethod]] specifies the method which will be used for scaling the image.
;dwFlags
+
;nFlags
 
:[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.
  
Line 38: Line 38:
  
 
== See Also ==
 
== See Also ==
:[[PXV:IIXC_Page|IIXC_Page]]
+
[[PXV:IIXC_Page|IIXC_Page]]
:[[PXV:IIXC_Page_DrawToDC|IIXC_Page:DrawToDC]]
+
:[[PXV:IIXC_Page_PrintToDC|IIXC_Page:PrintToDC]]
+
:[[PXV:IIXC_Page_StretchDraw|IIXC_Page:StretchDraw]]
+
:[[PXV:IXC_ScaleMethod|IXC_ScaleMethod]]
+
:[[PXV:IXC_DrawFlags|IXC_DrawFlags]]
+

Latest revision as of 02:17, 15 June 2015

The StretchDraw2 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 StretchDraw2([in]                   HANDLE_T         hDC,
                     [in]                   RECT*            stDestRect,
                     [in]                   double           nSrcLeft,
                     [in]                   double           nSrcTop,
                     [in]                   double           nSrcRight,
                     [in]                   double           nSrcBottom,
                     [in]                   IXC_ScaleMethod  nScaleMethod,
                     [in, defaultvalue(0)]  ULONG            nFlags);

Parameters

hDC
[in] Specifies the handle of the device context.
stDestRect
[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.
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