Click or drag to resize

DeviceCollectionDefault Property

Gets the system default device.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public Device Default { get; }

Property Value

Type: Device
The system default device.
Remarks
This property performs a TWAIN query to obtain the current default device. Since the system default device can change at any time, never call methods directly on this property.
Examples
Device dev = this.acquisition1.Devices.Default;
if (dev.TryOpen())
{
    dev.PixelType = ImagePixelType.BlackAndWhite;
    dev.ModalAcquire = true;
    dev.Acquire();
    dev.Close();
}
See Also