Accusoft.ImagXpress13.Net
FromHdib(ImagXpress,IntPtr,Boolean) Method




An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
A handle to a DIB
Controls whether the Dib is owned by the ImageX object and can be freed at will or if the user would like to maintain ownership of the Dib. If set to true then the user does not need to free the Hdib supplied as a parameter. If set to false then the user is responsible for freeing the Hdib and should call DisposeHdib to free the Hdib.
Creates an ImageX object from a handle to a DIB (Device Independent Bitmap).
Syntax
'Declaration
 
Public Overloads Shared Function FromHdib( _
   ByVal imagXpress As ImagXpress, _
   ByVal hdib As IntPtr, _
   ByVal ownDib As Boolean _
) As ImageX
'Usage
 
Dim imagXpress As ImagXpress
Dim hdib As IntPtr
Dim ownDib As Boolean
Dim value As ImageX
 
value = ImageX.FromHdib(imagXpress, hdib, ownDib)
public static ImageX FromHdib( 
   ImagXpress imagXpress,
   IntPtr hdib,
   bool ownDib
)
public: static ImageX* FromHdib( 
   ImagXpress* imagXpress,
   IntPtr hdib,
   bool ownDib
) 
public:
static ImageX^ FromHdib( 
   ImagXpress^ imagXpress,
   IntPtr hdib,
   bool ownDib
) 

Parameters

imagXpress
An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
hdib
A handle to a DIB
ownDib
Controls whether the Dib is owned by the ImageX object and can be freed at will or if the user would like to maintain ownership of the Dib. If set to true then the user does not need to free the Hdib supplied as a parameter. If set to false then the user is responsible for freeing the Hdib and should call DisposeHdib to free the Hdib.

Return Value

An ImageX object
Remarks

The ImageX object implements the IDisposable interface and the application is required to call the Dispose method when the application is done with ImageX object, otherwise memory may leak.

See Also

Reference

ImageX Class
ImageX Members
Overload List

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback