FormFix v6.0 for .NET - Updated
FromHdib(IntPtr,FormFix) Method



Accusoft.FormFixSdk Namespace > FormImage Class > FromHdib Method : FromHdib(IntPtr,FormFix) Method
The WIN32 HDIB handle to copy into the new object.
A reference to the FormFix workspace object.
Creates a new object and places a copy of the given image into it.
Syntax
'Declaration
 
Public Overloads Shared Function FromHdib( _
   ByVal dib As IntPtr, _
   ByVal workspace As FormFix _
) As FormImage
'Usage
 
Dim dib As IntPtr
Dim workspace As FormFix
Dim value As FormImage
 
value = FormImage.FromHdib(dib, workspace)
public static FormImage FromHdib( 
   IntPtr dib,
   FormFix workspace
)
public:
static FormImage^ FromHdib( 
   IntPtr dib,
   FormFix^ workspace
) 

Parameters

dib
The WIN32 HDIB handle to copy into the new object.
workspace
A reference to the FormFix workspace object.

Return Value

A new FormImage object that contains a copy of the original image.
Remarks

The copy of the image held by the FormImage object will be disposed of properly during disposal of the FormImage object. The disposal of the original image passed into this method is the responsibiltity of the calling code. Disposal of the original image passed into this method can be performed immediately after this method has executed.

To create a new FormImage without creating a copy of the original HDIB, use the FromHdib(IntPtr,Boolean,FormFix) overload. Using that overload, the FormImage object can be configured to dispose of the original image passed into the method.

The dib must contain a binary (1 bit per pixel) image.

See Also

Reference

FormImage Class
FormImage Members
Overload List

Is this page helpful?
Yes No
Thanks for your feedback.