tmyroadctfig / twaindotnet

MIT License
180 stars 117 forks source link

DsImageLayout.GetDefault error #54

Open georgeemr opened 4 years ago

georgeemr commented 4 years ago

What steps will reproduce the problem?

  1. Add setting in ScanSetting ScanSettings settings2 = new ScanSettings { ShowTwainUI = false, ShowProgressIndicatorUI = true, Area = new AreaSettings(TwainDotNet.TwainNative.Units.Inches, 0f, 0f, 6f, 11.5F) };
  2. Selecting scanner source
  3. _twain.StartScanning(settings2)

What is the expected output? What do you see instead? Expected proper scanning with 11.5-inch height

This happens when AreaSetting is added in the scan setting. Without AreaSetting it works fine.