Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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
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
)
Managed Extensions for 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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Documentrequires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features