Accusoft.FormFixSdk Namespace > FormImage Class : FromBitmap Method |
'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 )
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.