A unique image identifier of the GdPicture image representing the image in use.
Example





In This Topic

PrintFit Method (GdPictureImaging)

In This Topic
Prints a specified GdPicture image to the active printer adjusting the picture size to the default paper size.
Syntax
'Declaration
 
Public Function PrintFit( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus PrintFit( 
   int ImageID
)
public function PrintFit( 
    ImageID: Integer
): GdPictureStatus; 
public function PrintFit( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus PrintFit( 
   int ImageID
) 
public:
GdPictureStatus PrintFit( 
   int ImageID
) 

Parameters

ImageID
A unique image identifier of the GdPicture image representing the image in use.

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.

We strongly recommend always checking this status first.

Example
Printing an image while scaling it to the current paper size using the default printer.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // Open an image file. An empty string allows the control to prompt for selecting a file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("");
 
    // Print an image in the maximum possible size while preserving the aspect ratio.
    gdpictureImaging.PrintFit(imageID);
 
    // Release used resources.
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also