IIXC_Page::PrintToDC Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IIXC_Page::PrintToDC Method}}
 
{{#customTitle:IIXC_Page::PrintToDC Method}}
{{#parentPage:PXV:IIXC_Page|PrintToDC Method|method}}
+
{{#parentPage:PXV:IIXC_Page#Methods|PrintToDC|method}}
{{ToWrite}}
+
{{ToReview}}
+
  
The method prints the rectangle page block into specified printer's device context using color data from a specified page.
+
The '''PrintToDC''' method prints a page or rectangular block into specified printer's device context using color data from a specified page.
  
 
== Syntax ==
 
== Syntax ==
 
<pre class="brush:cpp;gutter:false">HRESULT PrintToDC([in]                  HANDLE_T  hDC,
 
<pre class="brush:cpp;gutter:false">HRESULT PrintToDC([in]                  HANDLE_T  hDC,
                   [in]                  RECT*    pDestRect,
+
                   [in]                  RECT*    stDestRect,
                   [in]                  RECT*    pSrcRect,
+
                   [in]                  RECT*    stSrcRect,
                   [in, defaultvalue(0)]  ULONG    dwFlags);</pre>
+
                   [in, defaultvalue(0)]  ULONG    nFlags);</pre>
  
 
== Parameters ==
 
== Parameters ==
 
;hDC
 
;hDC
 
:[in]  Specifies printer's device context.
 
:[in]  Specifies printer's device context.
;pDestRect
+
;stDestRect
:[in]  Specifies destination rectangle on printer's device context. This parameter may NOT be NULL.
+
:[in]  Pointer to the destination rectangle on printer's device context. This parameter may NOT be NULL.
;pSrcRect
+
;stSrcRect
:[in]  Specifies source rectangle on the image page to print. If this parameter is NULL then the whole page will be printed.
+
:[in]  Pointer to the source rectangle on the image page to print. If this parameter is NULL then the whole page will be printed.
;dwFlags
+
;nFlags
:[in, defaultvalue(0)]  The is reserved and should be 0.
+
:[in, defaultvalue(0)]  This is reserved and should be 0.
  
 
== Return Value ==
 
== Return Value ==
Line 27: Line 26:
  
 
== See Also ==
 
== See Also ==
:[[PXV:IIXC_Page|IIXC_Page]]
+
[[PXV:IIXC_Page|IIXC_Page]]
:[[PXV:IIXC_Page_DrawToDC|IIXC_Page:DrawToDC]]
+

Latest revision as of 03:16, 15 June 2015

The PrintToDC method prints a page or rectangular block into specified printer's device context using color data from a specified page.

Syntax

HRESULT PrintToDC([in]                   HANDLE_T  hDC,
                  [in]                   RECT*     stDestRect,
                  [in]                   RECT*     stSrcRect,
                  [in, defaultvalue(0)]  ULONG     nFlags);

Parameters

hDC
[in] Specifies printer's device context.
stDestRect
[in] Pointer to the destination rectangle on printer's device context. This parameter may NOT be NULL.
stSrcRect
[in] Pointer to the source rectangle on the image page to print. If this parameter is NULL then the whole page will be printed.
nFlags
[in, defaultvalue(0)] This is reserved and should be 0.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IIXC_Page