/// <summary> /// Creates a new instance of ManipulatorSettings with default setting values /// </summary> internal ManipulatorSettings() { mTranslationSettings = new TranslationSettings(); mRotationSettings = new RotationSettings(); mScaleSettings = new ScaleSettings(); mTranslationSettings.RestoreDefaults(); mRotationSettings.RestoreDefaults(); mScaleSettings.RestoreDefaults(); }
public ScanSettings GenerateScanSettings() { return(new ScanSettings() { UseDocumentFeeder = this.UseDocumentFeeder, ShowTwainUI = this.ShowTwainUI, ShowProgressIndicatorUI = this.ShowProgressIndicatorUI, UseDuplex = this.UseDuplex, Resolution = this.Resolution == Resolution.ColourPhotocopier ? ResolutionSettings.ColourPhotocopier : this.Resolution == Resolution.Photocopier ? ResolutionSettings.Photocopier : this.Resolution == Resolution.Fax ? ResolutionSettings.Fax : throw new InvalidOperationException("unexpected Resolution enum value"), Rotation = new RotationSettings() { AutomaticBorderDetection = this.AutomaticBorderDetection, AutomaticRotate = this.AutomaticRotate, }, });