Example #1
0
        private void setFirstAvailableScanner()
        {
            var scanners = SystemDevices.GetScannerDevices();

            _scannerSettings = scanners.FirstOrDefault();
            if (_scannerSettings == null)
            {
                throw new InvalidOperationException("Please connect your scanner to the system and also make sure its driver is installed.");
            }
        }
Example #2
0
 /// <summary>
 /// Using the selected scanner device as the primary scanner.
 /// </summary>
 /// <param name="scannerSettings">the provided scanner device</param>
 public ScannerDevice(ScannerSettings scannerSettings)
 {
     _scannerSettings = scannerSettings;
     setupDevice();
 }
Example #3
0
 /// <summary>
 /// Scanner Picture Config. Setting properties like ColorFormat, Brightess, etc.
 /// </summary>
 public ScannerPictureConfig(WiaSettings wiaScannerPictureSettings, ScannerSettings scannerSettings)
 {
     _wiaScannerPictureSettings = wiaScannerPictureSettings;
     _scannerSettings           = scannerSettings;
 }