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; }
Public ReadOnly Property Default As Device
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();
}
Dim dev As Device = Me.acquisition1.Devices.Default
If dev.TryOpen() Then
dev.PixelType = ImagePixelType.BlackAndWhite
dev.ModalAcquire = True
dev.Acquire()
dev.Close()
End If
See Also