Creates a new object and places the given handle into it.
Syntax
'Declaration
Public Overloads Shared Function FromHdib( _
ByVal As IntPtr, _
ByVal As Boolean, _
ByVal As FormFix _
) As FormImage
'Usage
Dim dib As IntPtr
Dim ownDib As Boolean
Dim workspace As FormFix
Dim value As FormImage
value = FormImage.FromHdib(dib, ownDib, workspace)
public static FormImage FromHdib(
IntPtr ,
bool ,
FormFix
)
public: static FormImage* FromHdib(
IntPtr ,
bool ,
FormFix*
)
public:
static FormImage^ FromHdib(
IntPtr ,
bool ,
FormFix^
)
Parameters
- dib
- The WIN32 HDIB handle to place into the new object.
- ownDib
- Indicates whether the new object should delete the handle to the DIB when you call its System.IDisposable.Dispose method. If you set this to true, this object will automatically delete the handle when it is finished using it. If you set it to false, this object will never delete the handle and you must delete it yourself.
- workspace
- A reference to the FormFix workspace object.
Return Value
A new
FormImage object that contains the original image.
See Also