Accusoft.PrintPro8.Net
PrintImage(Image,Single,Single,Single,Single,Single,Single,Single,Single,Boolean) Method




The image 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.
when true, the destination size is adjusted to maintain the image data's aspect ratio.
Draws an image on the printer.
Syntax
'Declaration
 
Public Overloads Sub PrintImage( _
   ByVal image As Image, _
   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 image As Image
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.PrintImage(image, sourceX, sourceY, sourceWidth, sourceHeight, destinationX, destinationY, destinationWidth, destinationHeight, aspect)
public void PrintImage( 
   Image image,
   float sourceX,
   float sourceY,
   float sourceWidth,
   float sourceHeight,
   float destinationX,
   float destinationY,
   float destinationWidth,
   float destinationHeight,
   bool aspect
)
public: void PrintImage( 
   Image* image,
   float sourceX,
   float sourceY,
   float sourceWidth,
   float sourceHeight,
   float destinationX,
   float destinationY,
   float destinationWidth,
   float destinationHeight,
   bool aspect
) 
public:
void PrintImage( 
   Image^ image,
   float sourceX,
   float sourceY,
   float sourceWidth,
   float sourceHeight,
   float destinationX,
   float destinationY,
   float destinationWidth,
   float destinationHeight,
   bool aspect
) 

Parameters

image
The image 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
when true, the destination size is adjusted to maintain the image data's aspect ratio.
See Also

Reference

PrintJob Class
PrintJob Members
Overload List

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback