Accusoft.ImagXpress13.Net
ToHbitmap Method




A boolean value which controls whether the current image is released from the ImageX object.
Gets a handle to a bitmap.
Syntax
'Declaration
 
Public Function ToHbitmap( _
   ByVal release As Boolean _
) As IntPtr
'Usage
 
Dim instance As ImageX
Dim release As Boolean
Dim value As IntPtr
 
value = instance.ToHbitmap(release)
public IntPtr ToHbitmap( 
   bool release
)
public: IntPtr ToHbitmap( 
   bool release
) 
public:
IntPtr ToHbitmap( 
   bool release
) 

Parameters

release
A boolean value which controls whether the current image is released from the ImageX object.

Return Value

An HBITMAP.
Remarks

If the release parameter is true, then the ImageX object no longer has an underlying image. It will be an empty image. If the release parameter is false, then a copy of the image is put into an HBITMAP object.

The HBITMAP value passed back from the ToHbitmap function is a GDI memory object and needs to be manually freed by the calling application, otherwise memory resource leaks will occur. The DisposeHbitmap method should be called to free the HBITMAP object.

See Also

Reference

ImageX Class
ImageX Members

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback