GdPicture.NET Reference Guide
GetDibFromGdPictureImage Method





GdPicture14 Namespace > GdPictureImaging Class : GetDibFromGdPictureImage Method
A unique image identifier of the GdPicture image representing the image to export.
Exports a specified GdPicture image to a DIB object, known as Device Independent Bitmap (DIB), as an IntPtr value. Please note that it is your responsibility to release the returned DIB object once you have no use for it.
Syntax
'Declaration
 
Public Function GetDibFromGdPictureImage( _
   ByVal ImageID As Integer _
) As IntPtr
public IntPtr GetDibFromGdPictureImage( 
   int ImageID
)
public function GetDibFromGdPictureImage( 
    ImageID: Integer
): IntPtr; 
public function GetDibFromGdPictureImage( 
   ImageID : int
) : IntPtr;
public: IntPtr GetDibFromGdPictureImage( 
   int ImageID
) 
public:
IntPtr GetDibFromGdPictureImage( 
   int ImageID
) 

Parameters

ImageID
A unique image identifier of the GdPicture image representing the image to export.

Return Value

A pointer to a newly created DIB object, known as Device Independent Bitmap (DIB), as an IntPtr value, containing the specified GdPictureImage data. Please always use the GetStat method to determine if this method has been successful.
Remarks
We strongly recommend using the GetStat method to identify the specific reason for the method's failure.

Be aware that you need to release the resulting DIB object with the ReleaseDib(Int32) method after being used.

See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
CreateGdPictureImageFromDIB(Int32) Method
SaveAsBMP(Int32,String) Method
GetStat Method
ReleaseDib(Int32) Method
ReleaseGdPictureImage Method