public DirectImportOperation(ThumbnailRenderer thumbnailRenderer, ThreadFactory threadFactory) { this.thumbnailRenderer = thumbnailRenderer; this.threadFactory = threadFactory; AllowCancel = true; }
public DeskewOperation(ThreadFactory threadFactory, ThumbnailRenderer thumbnailRenderer) { this.threadFactory = threadFactory; this.thumbnailRenderer = thumbnailRenderer; AllowCancel = true; }
public DeskewOperation(ThumbnailRenderer thumbnailRenderer, ScannedImageRenderer scannedImageRenderer) { this.thumbnailRenderer = thumbnailRenderer; this.scannedImageRenderer = scannedImageRenderer; AllowCancel = true; AllowBackground = true; }
public FBrightness(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer) { this.changeTracker = changeTracker; this.thumbnailRenderer = thumbnailRenderer; InitializeComponent(); BrightnessTransform = new BrightnessTransform(); }
public WiaScanDriver(BackgroundWiaTransfer backgroundWiaTransfer, ForegroundWiaTransfer foregroundWiaTransfer, ThreadFactory threadFactory, IBlankDetector blankDetector, ThumbnailRenderer thumbnailRenderer) { this.backgroundWiaTransfer = backgroundWiaTransfer; this.foregroundWiaTransfer = foregroundWiaTransfer; this.threadFactory = threadFactory; this.blankDetector = blankDetector; this.thumbnailRenderer = thumbnailRenderer; }
public FRotate(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer) { this.changeTracker = changeTracker; this.thumbnailRenderer = thumbnailRenderer; InitializeComponent(); RotationTransform = new RotationTransform(); }
public FContrast(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer) { this.changeTracker = changeTracker; this.thumbnailRenderer = thumbnailRenderer; InitializeComponent(); ContrastTransform = new TrueContrastTransform(); }
public FCrop(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer) { this.changeTracker = changeTracker; this.thumbnailRenderer = thumbnailRenderer; InitializeComponent(); CropTransform = new CropTransform(); }
public IEnumerable <int> RotateFlip(IEnumerable <int> selection, RotateFlipType rotateFlipType) { Parallel.ForEach(selection.ToList(), i => { Images[i].AddTransform(new RotationTransform(rotateFlipType)); Images[i].SetThumbnail(ThumbnailRenderer.RenderThumbnail(Images[i])); }); return(selection.ToList()); }
public RecoveryOperation(IFormFactory formFactory, ThreadFactory threadFactory, ThumbnailRenderer thumbnailRenderer) { this.formFactory = formFactory; this.threadFactory = threadFactory; this.thumbnailRenderer = thumbnailRenderer; ProgressTitle = MiscResources.ImportProgress; AllowCancel = true; }
public IEnumerable <int> ResetTransforms(IEnumerable <int> selection) { Parallel.ForEach(Images.ElementsAt(selection).ToList(), img => { img.ResetTransforms(); img.SetThumbnail(ThumbnailRenderer.RenderThumbnail(img)); }); return(selection.ToList()); }
public IEnumerable <int> RotateFlip(IEnumerable <int> selection, RotateFlipType rotateFlipType) { foreach (int i in selection) { Images[i].AddTransform(new RotationTransform(rotateFlipType)); Images[i].SetThumbnail(ThumbnailRenderer.RenderThumbnail(Images[i])); } return(selection.ToList()); }
public IEnumerable <int> ResetTransforms(IEnumerable <int> selection) { foreach (ScannedImage img in Images.ElementsAt(selection)) { img.ResetTransforms(); img.SetThumbnail(ThumbnailRenderer.RenderThumbnail(img)); } return(selection.ToList()); }
public ScannedImageHelper(ThumbnailRenderer thumbnailRenderer, IOperationFactory operationFactory, IOperationProgress operationProgress, AppConfigManager appConfigManager, IUserConfigManager userConfigManager, OcrRequestQueue ocrRequestQueue, OcrManager ocrManager) { this.thumbnailRenderer = thumbnailRenderer; this.operationFactory = operationFactory; this.operationProgress = operationProgress; this.appConfigManager = appConfigManager; this.userConfigManager = userConfigManager; this.ocrRequestQueue = ocrRequestQueue; this.ocrManager = ocrManager; }
public Bitmap GetThumbnail(ThumbnailRenderer thumbnailRenderer) { if (thumbnail == null) { if (thumbnailRenderer == null) { return(null); } thumbnail = thumbnailRenderer.RenderThumbnail(this); } Debug.Assert(thumbnail != null); return((Bitmap)thumbnail.Clone()); }
public ThumbnailCache(ThumbnailRenderer thumbnailRenderer) { this.thumbnailRenderer = thumbnailRenderer; }
public TwainWrapper(IFormFactory formFactory, IBlankDetector blankDetector, ThumbnailRenderer thumbnailRenderer) { this.formFactory = formFactory; this.blankDetector = blankDetector; this.thumbnailRenderer = thumbnailRenderer; }
public ScannedImageHelper(ThumbnailRenderer thumbnailRenderer, IOperationFactory operationFactory, IOperationProgress operationProgress) { this.thumbnailRenderer = thumbnailRenderer; this.operationFactory = operationFactory; this.operationProgress = operationProgress; }
public RecoveryManager(IFormFactory formFactory, ThreadFactory threadFactory, ThumbnailRenderer thumbnailRenderer) { this.formFactory = formFactory; this.threadFactory = threadFactory; this.thumbnailRenderer = thumbnailRenderer; }
public FDesktop(IEmailer emailer, StringWrapper stringWrapper, AppConfigManager appConfigManager, RecoveryManager recoveryManager, IScannedImageImporter scannedImageImporter, OcrDependencyManager ocrDependencyManager, IProfileManager profileManager, IScanPerformer scanPerformer, IScannedImagePrinter scannedImagePrinter, ChangeTracker changeTracker, EmailSettingsContainer emailSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, PdfSettingsContainer pdfSettingsContainer, StillImage stillImage, IOperationFactory operationFactory, IUserConfigManager userConfigManager, KeyboardShortcutManager ksm, ThumbnailRenderer thumbnailRenderer, DialogHelper dialogHelper) { this.emailer = emailer; this.stringWrapper = stringWrapper; this.appConfigManager = appConfigManager; this.recoveryManager = recoveryManager; this.scannedImageImporter = scannedImageImporter; this.ocrDependencyManager = ocrDependencyManager; this.profileManager = profileManager; this.scanPerformer = scanPerformer; this.scannedImagePrinter = scannedImagePrinter; this.changeTracker = changeTracker; this.emailSettingsContainer = emailSettingsContainer; this.fileNamePlaceholders = fileNamePlaceholders; this.imageSettingsContainer = imageSettingsContainer; this.pdfSettingsContainer = pdfSettingsContainer; this.stillImage = stillImage; this.operationFactory = operationFactory; this.userConfigManager = userConfigManager; this.ksm = ksm; this.thumbnailRenderer = thumbnailRenderer; this.dialogHelper = dialogHelper; InitializeComponent(); Shown += FDesktop_Shown; FormClosing += FDesktop_FormClosing; Closed += FDesktop_Closed; }
public Bitmap GetThumbnail(ThumbnailRenderer thumbnailRenderer) { if (thumbnail == null) { if (thumbnailRenderer == null) { return null; } thumbnail = thumbnailRenderer.RenderThumbnail(this); } Debug.Assert(thumbnail != null); return (Bitmap)thumbnail.Clone(); }
public ImageImporter(ThumbnailRenderer thumbnailRenderer) { this.thumbnailRenderer = thumbnailRenderer; }
public PdfSharpImporter(IErrorOutput errorOutput, IPdfPasswordProvider pdfPasswordProvider, ThumbnailRenderer thumbnailRenderer) { this.errorOutput = errorOutput; this.pdfPasswordProvider = pdfPasswordProvider; this.thumbnailRenderer = thumbnailRenderer; }