GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / Print Method
A unique image identifier of the GdPicture image representing the image in use.
Example





In This Topic
Print Method (GdPictureImaging)
In This Topic
Prints a specified GdPicture image to the active printer using the actual paper size.
Syntax
'Declaration
 
Public Function Print( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus Print( 
   int ImageID
)
public function Print( 
    ImageID: Integer
): GdPictureStatus; 
public function Print( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus Print( 
   int ImageID
) 
public:
GdPictureStatus Print( 
   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 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("");
 
    gdpictureImaging.Print(imageID);
 
    // Release used resources.
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also