Leadtools.Document Deprecated as of v16. Refer to: Leadtools.Forms.Ocr | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
DrawPage(IntPtr,Int32,Rectangle,Rectangle,Rectangle,Rectangle,RasterPaintProperties) Method
See Also 
Leadtools.Document Namespace > RasterDocumentEngine Class > DrawPage Method : DrawPage(IntPtr,Int32,Rectangle,Rectangle,Rectangle,Rectangle,RasterPaintProperties) Method



hdc
Specifies the device context
pageIndex
Specifies the index of the page to be drawn. This index is zero-based
src
The coordinates for the source drawing area
srcClip
The coordinates for the source clip drawing area
dest
The coordinates for the destination drawing area
destClip
The coordinates for the destination clip drawing area
paintProperties
Gets or sets the RasterPaintProperties which control the display
hdc
Specifies the device context
pageIndex
Specifies the index of the page to be drawn. This index is zero-based
src
The coordinates for the source drawing area
srcClip
The coordinates for the source clip drawing area
dest
The coordinates for the destination drawing area
destClip
The coordinates for the destination clip drawing area
paintProperties
Gets or sets the RasterPaintProperties which control the display
Draws the specified page with(out) its zones, at any size, to a Graphics object. If the display surface has fewer colors than the image, this method dithers the output to that display surface without affecting the actual image data.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub DrawPage( _
   ByVal hdc As IntPtr, _
   ByVal pageIndex As Integer, _
   ByVal src As Rectangle, _
   ByVal srcClip As Rectangle, _
   ByVal dest As Rectangle, _
   ByVal destClip As Rectangle, _
   ByVal paintProperties As RasterPaintProperties _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim hdc As IntPtr
Dim pageIndex As Integer
Dim src As Rectangle
Dim srcClip As Rectangle
Dim dest As Rectangle
Dim destClip As Rectangle
Dim paintProperties As RasterPaintProperties
 
instance.DrawPage(hdc, pageIndex, src, srcClip, dest, destClip, paintProperties)
C# 
public void DrawPage( 
   IntPtr hdc,
   int pageIndex,
   Rectangle src,
   Rectangle srcClip,
   Rectangle dest,
   Rectangle destClip,
   RasterPaintProperties paintProperties
)
C++/CLI 
public:
void DrawPage( 
   IntPtr hdc,
   int pageIndex,
   Rectangle src,
   Rectangle srcClip,
   Rectangle dest,
   Rectangle destClip,
   RasterPaintProperties paintProperties
) 

Parameters

hdc
Specifies the device context
pageIndex
Specifies the index of the page to be drawn. This index is zero-based
src
The coordinates for the source drawing area
srcClip
The coordinates for the source clip drawing area
dest
The coordinates for the destination drawing area
destClip
The coordinates for the destination clip drawing area
paintProperties
Gets or sets the RasterPaintProperties which control the display

Remarks

Before calling this method, you must specify the active page to be drawn using the ActivePage property. If the ActivePage property is not set, then this method will fail.
For more information, refer to Drawing Pages and Zones.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

The Leadtools.Document namespace is deprecated and no longer supported as of LEADTOOLS v16. For v16 and later, please refer to: Leadtools.Forms.Ocr. This documentation is retained for v15 and earlier informational use only.