Parameters
- dib
- The WIN32 HDIB handle to copy into the new object.
- workspace
- A reference to the FormFix workspace object.
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.