IIXC_Page::PrintToDC Method

From PDF XChange PDF SDK
Jump to: navigation, search
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 PrintToDC([in]                  HANDLE_T  nDC,
+
<pre class="brush:cpp;gutter:false">HRESULT PrintToDC([in]                  HANDLE_T  hDC,
                   [in]                  RECT*    stDestRect,
+
                   [in]                  RECT*    destRect,
                   [in]                  RECT*    stSrcRect,
+
                   [in]                  RECT*    srcRect,
                   [in, defaultvalue(0)]  ULONG    nFlags);</pre>
+
                   [in, defaultvalue(0)]  ULONG    Flags);</pre>
  
 
== Parameters ==
 
== Parameters ==
;nDC
+
;hDC
 
:[in]  Specifies printer's device context.
 
:[in]  Specifies printer's device context.
;stDestRect
+
;destRect
 
:[in]  Pointer to the 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.
;stSrcRect
+
;srcRect
 
:[in]  Pointer to the 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.
;nFlags
+
;Flags
 
:[in, defaultvalue(0)]  This is reserved and should be 0.
 
:[in, defaultvalue(0)]  This is reserved and should be 0.
  

Revision as of 06:51, 12 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*     destRect,
                  [in]                   RECT*     srcRect,
                  [in, defaultvalue(0)]  ULONG     Flags);

Parameters

hDC
[in] Specifies printer's device context.
destRect
[in] Pointer to the destination rectangle on printer's device context. This parameter may NOT be NULL.
srcRect
[in] Pointer to the source rectangle on the image page to print. If this parameter is NULL then the whole page will be printed.
Flags
[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