Example #1
0
        private void ScanTwainFixedSize()
        {
            AreaSettings AreaSettings = new AreaSettings(Units.Centimeters, 0f, 0f, 29.7f, 21.01f);
            ScanSettings _settings = new ScanSettings();
            ResolutionSettings rs = new ResolutionSettings();
            rs.ColourSetting = ColourSetting.GreyScale;
            rs.Dpi = 100;
            _settings.Resolution = rs;
            _settings.ShowTwainUI = false;
            _settings.ShowProgressIndicatorUI = true;
            _settings.Area = AreaSettings;

                _twain.StartScanning(_settings);
        }
Example #2
0
        private void ScanTwainA4()
        {
            ScanSettings _settings = new ScanSettings();
            ResolutionSettings rs = new ResolutionSettings();
            rs.ColourSetting = ColourSetting.GreyScale;
            rs.Dpi = 100;
            _settings.Resolution = rs;
            _settings.ShowTwainUI = false;
            _settings.ShowProgressIndicatorUI = true;
            PageSettings ps = new PageSettings();
            ps.Orientation = TwainDotNet.TwainNative.Orientation.Portrait;
            ps.Size = PageType.MaxSize;

            _settings.Page = ps;

                _twain.StartScanning(_settings);
        }