'Declaration
Public Shared Sub DisposeHbitmap( _
ByVal hbitmap As IntPtr _
)
'Usage
Dim hbitmap As IntPtrImageX.DisposeHbitmap(hbitmap)
Parameters
hbitmap
A System.IntPtr handle to an HBITMAP object to free.
Remarks
This static function is a helper function so that the developer can use this function to free an HBITMAP object instead of having to call DeleteObject in gdi32.dll. This method should be called to free the HBITMAP object returned from the ToHbitmap method.