ScanFix Xpress v9.0 for .NET - Updated
Export an Image Data from ScanFix Xpress
User Guide > How To > Import and Export Images > Export an Image Data from ScanFix Xpress

Similar to imports, ToBitmap(System.Drawing.Bitmap bitmap), ToHdib(System.IntPtr hdib), ToImage(System.Drawing.Image  image) allow you to output the image data to desired formats either internal or external to Accusoft components.

As an additional alternative for exporting to other Accusoft components, calling CopyTo() or TransferTo() from ScanFix Xpress are the preferred way of achieving this goal. See Pass Image Data Between Different Accusoft Components for details.

The following C# code demonstrates how to export data from ScanFix Xpress.

To Accusoft components

C# Example
Copy Code
ScanFix scanFix1 = new ScanFix();
ImagXpress imagXpress1 = new Accusoft.ImagXpressSdk.ImagXpress();
ImageX imageX;
……
// scanFix1 has some image data already at this point
scanFix1.TransferTo(imageX);
OR
scanFix1.CopyTo(imageX);
OR
imageX = ImageX.FromBitmap(imagXpress1, scanFix1.ToBitmap());
OR
imageX = ImageX.FromHdib(imagXpress1, scanFix1.ToHdib(true));

To objects outside of Accusoft

C# Example
Copy Code
// scanFix1 has some image data already at this point
System.Drawing.Bitmap bitmap = scanFix1.ToBitmap();
OR
System.Drawing.Bitmap bitmap = (Bitmap)scanFix1.ToImage();

Also see documentation for all the introduced methods by following the links.

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