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





In This Topic
GetHBitmapFromGdPictureImage Method
In This Topic
Exports a specified GdPicture image to a HBitmap object based on Microsoft® Windows® Graphics Device Interface (GDI), as an IntPtr 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 GetHBitmapFromGdPictureImage( _
   ByVal ImageID As Integer _
) As IntPtr
public IntPtr GetHBitmapFromGdPictureImage( 
   int ImageID
)
public function GetHBitmapFromGdPictureImage( 
    ImageID: Integer
): IntPtr; 
public function GetHBitmapFromGdPictureImage( 
   ImageID : int
) : IntPtr;
public: IntPtr GetHBitmapFromGdPictureImage( 
   int ImageID
) 
public:
IntPtr GetHBitmapFromGdPictureImage( 
   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 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 HBitmap object with the ReleaseHBitmap method after being used.

This method requires the Image Documents component to run.

See Also