LEADTOOLS Windows Forms (Leadtools.WinForms assembly)
LEAD Technologies, Inc

Prepare Method






Width of the image to print.
Height of the image to print.
Horizontal DPI value of the image to print.
Vertical DPI value of the image to print.
An System.Drawing.Printing.PrintPageEventArgs object that contains print data.
Prepares this RasterImagePrinter object state for printing.
Syntax
protected void Prepare( 
   int width,
   int height,
   float dpiX,
   float dpiY,
   PrintPageEventArgs e
)
'Declaration
 
Protected Sub Prepare( _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal dpiX As Single, _
   ByVal dpiY As Single, _
   ByVal e As PrintPageEventArgs _
) 
'Usage
 
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)
protected void Prepare( 
   int width,
   int height,
   float dpiX,
   float dpiY,
   PrintPageEventArgs e
)
 function Leadtools.WinForms.RasterImagePrinter.Prepare( 
   width ,
   height ,
   dpiX ,
   dpiY ,
   e 
)
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 System.Drawing.Printing.PrintPageEventArgs object that contains print data.
Remarks
Derive classes should call this method from Print to prepare the SourceRectangle, DestinationRectangle and DestinationClipRectangle properties.
Example
For an example, refer to RasterImagePrinter and ImageRectangle.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImagePrinter Class
RasterImagePrinter Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.