- 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.
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++/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 System.Drawing.Printing.PrintPageEventArgs object that contains print data.
For an example, refer to RasterImagePrinter and ImageRectangle.
Derive classes should call this method from Print to prepare the SourceRectangle, DestinationRectangle and DestinationClipRectangle properties.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7