Visual Basic (Declaration) | |
---|---|
Public Function AcquireToImage( _ ByVal flags As TwainUserInterfaceFlags _ ) As RasterImage |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RasterImage AcquireToImage( TwainUserInterfaceFlags flags ) |
Managed Extensions for C++ | |
---|---|
public: RasterImage AcquireToImage( TwainUserInterfaceFlags flags ) |
C++/CLI | |
---|---|
public: RasterImage AcquireToImage( TwainUserInterfaceFlags flags ) |
Parameters
- flags
- Indicates whether to display the manufacturer's user interface.
Return Value
One of the DialogResult values. If an error occurs, an exception is thrown.Visual Basic | Copy Code |
---|---|
Public Sub AcquireToImageExample(ByVal parent As IWin32Window) |
C# | Copy Code |
---|---|
public void AcquireToImageExample(IWin32Window parent) |
Use the Acquire method to acquire one or more images. Use the AcquireFast method to acquire
one or more images and save them to one or more files.
The number of pages to acquire can be determined by getting the TWAIN source's capabilities. To change the number of pages to acquire, set the appropriate capability to the desired number.
This method will get images from the selected TWAIN source and pass them into an RasterImage object to the AcquirePage event through the TwainAcquirePageEventArgs class.
For each image acquired by the currently selected TWAIN source, an AcquirePage event is generated.
The Acquire method acquires pages in the following transfer modes:
For more information, refer to How to Acquire from the Twain Source.
The number of pages to acquire can be determined by getting the TWAIN source's capabilities. To change the number of pages to acquire, set the appropriate capability to the desired number.
This method will get images from the selected TWAIN source and pass them into an RasterImage object to the AcquirePage event through the TwainAcquirePageEventArgs class.
For each image acquired by the currently selected TWAIN source, an AcquirePage event is generated.
The Acquire method acquires pages in the following transfer modes:
Native - gets the images being scanned into the memory as a whole. Memory Buffered - gets images from the source as strips of data. These strips can be merged to get the whole image.
For more information, refer to How to Acquire from the Twain Source.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family