Visual C#.NET: ISIS Scan for Document & Images
How to ISIS scan for document image using C#.NET
Yiigo.Imaging for .NET ISIS Scanning Plugin has those following functionalities:
- Acquire images from ISIS scanning devices
- Acquire images to DIB handle or files
- Support for duplex mode, imprinter mode, transfer mode, Auto Scan and more
- Pre-set scanning properties, such as scanning mode, border detection, barcode detection, etc.
- Get images & documents information, such as file formats, rotation angle, resolution in dpi, page size
ISIS Scanning with C#.NET Sample Code Requirements
Before scanning document and image with ISIS scanner in Visual C#.NET, make sure that you have installed. Start to ISIS Scan
- Open and run your Microsoft Visual Studio;
- Choose either "Visual C# Projects" in "New Project" dialog box;
- Choose "Windows Application" in the "Templates" List and name it "YiigoImagingISISScanCsharp";
- Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
- In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library and Yiigo.Imaging.Net.Isis.dll ;
- Add it to your Visual C# applications;
- Call Yiigo .NET Image Namespace & Copy those following codes:
using System.IO; using System.Drawing.Printing; using Yiigo.Imaging; using Yiigo.Imaging.Processing; using Yiigo.Imaging.IsisScan;
// Handle the Image Acquired Event { if (this.RasterEdgeImaging.Image != null) this.RasterEdgeImaging.Image.Dispose(); if (e.Image != null) { this.RasterEdgeImaging.Image = e.Image.ToBitmap(); e.Image.Dispose(); } else if (e.Bitmap != null) { this.RasterEdgeImaging.Image = e.Bitmap; } if (e.JobSeparator) System.Diagnostics.Debug.WriteLine("yiigo"); } // Allowing Users to Select an ISIS Device IsisDevice dev = null; if (this.acquisition.ShowSelectSource(this)) dev = this.acquisition.Devices.Default;
// Opening a Connection to a Device in Order to Set Properties if (device.Open()) { device.Settings.Resolution = new Rational(200, 200); device.PixelFormat = IsisPixelFormat.Binary; device.Acquire(); device.Close(); } // Acquiring Directly to File If (device.Open()) { device.PixelFormat = IsisPixelFormat.Binary; device.AcquireToFile(IsisFileType.Tiff, IsisCompression.Group4); device.Close(); }⦠private void _acquisition_FileAcquisition(object sender, IsisFileAcquisitionEventArgs e) { if (this.chkSaveMultipage.Checked && (e.FileType == IsisFileType.Tiff || e.FileType == IsisFileType.Pdf || e.FileType ==IsisFileType.Dcx)) e.Append = true; e.FileName = myFileName; } // Upload Image to Sever private void UploadImage(System.Drawing.Bitmap image) { Yiigo.ISIS.HttpPost post = new Yiigo.ISIS.HttpPost(); post.FormData.Add("image1", image, "filename.png"); post.FormData.Add("username", user); post.FormData.Add("password", password); string ret = post.PostData("http://www.website.com/postImage.aspx"); } | 
Products Overview Tech Specs Features Other Plugins Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner
|