FormFix v6.0 for .NET - Updated
FromBitmap Method



Accusoft.FormFixSdk Namespace > FormImage Class : FromBitmap Method
The image 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 Shared Function FromBitmap( _
   ByVal bitmap As Bitmap, _
   ByVal workspace As FormFix _
) As FormImage
'Usage
 
Dim bitmap As Bitmap
Dim workspace As FormFix
Dim value As FormImage
 
value = FormImage.FromBitmap(bitmap, workspace)
public static FormImage FromBitmap( 
   Bitmap bitmap,
   FormFix workspace
)
public:
static FormImage^ FromBitmap( 
   Bitmap^ bitmap,
   FormFix^ workspace
) 

Parameters

bitmap
The image 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

This method accepts a System.Drawing.Bitmap (or a System.Drawing.Image which has been cast to a System.Drawing.Bitmap) and creates a new FormImage object that contains a copy of that image.

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

The overloaded FromHdib(IntPtr, FormFix) and FromHdib(IntPtr, Boolean, FormFix) methods are the fastest way to transfer images between Accusoft's components.

See Also

Reference

FormImage Class
FormImage Members

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