Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
Prepare Method
See Also 
Leadtools.WinForms Namespace > RasterImagePrinter Class : Prepare Method




width
Width of the image to print.
height
Height of the image to print.
dpiX
Horizontal DPI value of the image to print.
dpiY
Vertical DPI value of the image to print.
e
An PrintPageEventArgs object that contains print data.
Prepares this RasterImagePrinter object state for printing.

Syntax

Visual Basic (Declaration) 
Protected Sub Prepare( _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal dpiX As Single, _
   ByVal dpiY As Single, _
   ByVal e As PrintPageEventArgs _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterImagePrinter
Dim width As Integer
Dim height As Integer
Dim dpiX As Single
Dim dpiY As Single
Dim e As PrintPageEventArgs
 
instance.Prepare(width, height, dpiX, dpiY, e)
C# 
protected void Prepare( 
   int width,
   int height,
   float dpiX,
   float dpiY,
   PrintPageEventArgs e
)
Managed Extensions for C++ 
protected: void Prepare( 
   int width,
   int height,
   float dpiX,
   float dpiY,
   PrintPageEventArgs e
) 
C++/CLI 
protected:
void Prepare( 
   int width,
   int height,
   float dpiX,
   float dpiY,
   PrintPageEventArgs e
) 

Parameters

width
Width of the image to print.
height
Height of the image to print.
dpiX
Horizontal DPI value of the image to print.
dpiY
Vertical DPI value of the image to print.
e
An PrintPageEventArgs object that contains print data.

Remarks

Derive classes should call this method from Print to prepare the SourceRectangle, DestinationRectangle and DestinationClipRectangle properties.

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