Accusoft.PrintPro8.Net
PrintBitmap(Bitmap,Single,Single,Single,Single,Single,Single,Single,Single,Boolean) Method




The Bitmap object to draw.
The X location in the source image of the upper-left of the source image data.
The Y location in the source image of the upper-left of the source image data.
The source width of the image data.
The source height of the image data.
The X location of the destination for the upper-left corner of the image data.
The Y location of the destination for the upper-left corner of the image data.
The destination width of the Image data.
The destination height of the Image data.
A boolean value that when true, the destination size is adjusted to maintain the image data's aspect ratio.
Draws a Bitmap on the printer.
Syntax
'Declaration
 
Public Overloads Sub PrintBitmap( _
   ByVal bitmap As Bitmap, _
   ByVal sourceX As Single, _
   ByVal sourceY As Single, _
   ByVal sourceWidth As Single, _
   ByVal sourceHeight As Single, _
   ByVal destinationX As Single, _
   ByVal destinationY As Single, _
   ByVal destinationWidth As Single, _
   ByVal destinationHeight As Single, _
   ByVal aspect As Boolean _
) 
'Usage
 
Dim instance As PrintJob
Dim bitmap As Bitmap
Dim sourceX As Single
Dim sourceY As Single
Dim sourceWidth As Single
Dim sourceHeight As Single
Dim destinationX As Single
Dim destinationY As Single
Dim destinationWidth As Single
Dim destinationHeight As Single
Dim aspect As Boolean
 
instance.PrintBitmap(bitmap, sourceX, sourceY, sourceWidth, sourceHeight, destinationX, destinationY, destinationWidth, destinationHeight, aspect)
public void PrintBitmap( 
   Bitmap bitmap,
   float sourceX,
   float sourceY,
   float sourceWidth,
   float sourceHeight,
   float destinationX,
   float destinationY,
   float destinationWidth,
   float destinationHeight,
   bool aspect
)
public: void PrintBitmap( 
   Bitmap* bitmap,
   float sourceX,
   float sourceY,
   float sourceWidth,
   float sourceHeight,
   float destinationX,
   float destinationY,
   float destinationWidth,
   float destinationHeight,
   bool aspect
) 
public:
void PrintBitmap( 
   Bitmap^ bitmap,
   float sourceX,
   float sourceY,
   float sourceWidth,
   float sourceHeight,
   float destinationX,
   float destinationY,
   float destinationWidth,
   float destinationHeight,
   bool aspect
) 

Parameters

bitmap
The Bitmap object to draw.
sourceX
The X location in the source image of the upper-left of the source image data.
sourceY
The Y location in the source image of the upper-left of the source image data.
sourceWidth
The source width of the image data.
sourceHeight
The source height of the image data.
destinationX
The X location of the destination for the upper-left corner of the image data.
destinationY
The Y location of the destination for the upper-left corner of the image data.
destinationWidth
The destination width of the Image data.
destinationHeight
The destination height of the Image data.
aspect
A boolean value that when true, the destination size is adjusted to maintain the image data's aspect ratio.
See Also

Reference

PrintJob Class
PrintJob Members
Overload List

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback