GdPicture.NET Reference Guide
GdPictureImaging Constructor
Example 





GdPicture14 Namespace > GdPictureImaging Class : GdPictureImaging Constructor
A standard constructor for the GdPictureImaging class. It initializes an instance of the GdPictureImaging class, which subsequently represents a wrapper for all the image resources you want to process. You will need this object to perform all available operations with your image files.

Processed image resources are identified by their unique image indentifier, so you need to initialize only one GdPictureImaging object to handle all your image files.

Syntax
'Declaration
 
Public Function New()
public GdPictureImaging()
public GdPictureImaging(); 
public function GdPictureImaging();
public: GdPictureImaging();
public:
GdPictureImaging();
Remarks
As the best practice, we recommend going with one GdPictureImaging object for all processing image resources. At the same, be aware, that you need to release all allocated image resources after being used.
Example
How to create a GdPictureImaging object.
'The first option
Dim oImage As New GdPictureImaging()
'You can do your stuff with oGdPicturePDF here.
oImage.Dispose()
 
'The second option
 
'The very good practise is to use the keyword "using".
Using oImage As New GdPictureImaging()
'You can do your stuff with oImage here.
End Using
//The first option
GdPictureImaging oImage = new GdPictureImaging();
//You can do your stuff with oGdPicturePDF here.
oImage.Dispose();
 
//The second option
 
//The very good practise is to use the keyword "using".
using (GdPictureImaging oImage = new GdPictureImaging())
{
    //You can do your stuff with oImage here.
}
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
Dispose Method
ReleaseGdPictureImage Method