GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / GetHBitmapFromGdPictureImageI Method
A unique image identifier of the GdPicture image representing the image to export.





In This Topic
GetHBitmapFromGdPictureImageI Method (GdPictureImaging)
In This Topic
Exports a specified GdPicture image to a HBitmap object based on Microsoft® Windows® Graphics Device Interface (GDI), as an integer value. Please note that it is your responsibility to release the returned HBitmap object once you have no use for it.
Syntax
'Declaration
 
Public Function GetHBitmapFromGdPictureImageI( _
   ByVal ImageID As Integer _
) As Integer
public int GetHBitmapFromGdPictureImageI( 
   int ImageID
)
public function GetHBitmapFromGdPictureImageI( 
    ImageID: Integer
): Integer; 
public function GetHBitmapFromGdPictureImageI( 
   ImageID : int
) : int;
public: int GetHBitmapFromGdPictureImageI( 
   int ImageID
) 
public:
int GetHBitmapFromGdPictureImageI( 
   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 HBitmap object based on Microsoft® Windows® Graphics Device Interface (GDI), as an integer 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 HBitmap object with the ReleaseHBitmap method after being used.

See Also