GdPicture.NET Reference Guide
GetHBitmapFromGdPictureImage Method





GdPicture14 Namespace > GdPictureImaging Class : GetHBitmapFromGdPictureImage Method
A unique image identifier of the GdPicture image representing the image to export.
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. 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 HBitmap object with the ReleaseHBitmap method after being used.

See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
CreateGdPictureImageFromHBitmap(Int32) Method
SaveAsBMP(Int32,String) Method
GetStat Method
ReleaseHBitmap Method
ReleaseGdPictureImage Method