It is an easy task to integrate advanced Twain scanning features into your Windows Forms applications.
- Acquire single-page or multipage scanning
- Acquire images from local folders, scanners and digital cameras
- Include duplex scanning mode
- Support for AutoScan mode
- Get image information of the current page
- Scan in black and white, halftone, grayscale, palette or full color
- Save images directly to a file
- More Twain Scanning functions
Twain Scanning
This integration guide suggests how to use Twain Scanner to scan images and documents in Winforms Image Viewer. (For information about viewing images in C#.NET applications, VB.NET applications or on the web, please go to
Twain Scanning for C#.NET,
Twain Scanning in VB.NET and
Twain Scanning in Web Viewer.)
- Start you Microsoft Visual Studio;
- Open an existed Windows Application;
- Add RasterEdge.DotNetImaging.dll & RasterEdge.DotNetImaging.Twain.dll to projects;
- Drag ImageViewer and TwainScanner to your app;
Acquire Image
Go to the built-in property editor:
- Click "Acquire Page" and select "Single Page" to acquire single images from the currently selected TWAIN source;
- Click "Acquire Page" and select "Multi Page" to acquire multi images from the currently selected TWAIN source;
- Click "Acquire to DIB" to acquire images from the currently selected Data Source to a DIB handle;
- Click "Acquire to File" to acquire images from the currently selected Data Source to a file.
Scanning Mode
Go to the built-in property editor:
- Activate "Duplex" if you want to scan both front and back of page;
- Activate "Auto Scan" if you want to enable the auto scan scanning capability;
- Activate "Transfer" to enable the transfer mode.
Acquire Image Information
Go to the built-in property editor:
- Click "Get Compression" to get image compression type of the current page;
- Click "Get Size" to get image width & height of the current page;
- Click "Get DPI" to get image resolution in dpi of the current page;
- Click "Get Rotation" to get rotation angle of the current page applied to Twain device.
More Tutorials!
Find more user guides with RasteEdge .NET Image in .NET Winforms applications!
Want to install Imaging SDK in Web applications, please go to
AJAX Zero-Footprint Document Image Viewer.