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





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / GetDibFromGdPictureImage Method

GetDibFromGdPictureImage Method (GdPictureImaging)

In This Topic
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. The GetStat method can be subsequently used to determine if this method has been successful.
Remarks
It is recommend to use the GetStat method to identify the specific reason for the method's failure, if any.

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

This method requires the Image Documents component to run.

See Also