コード例 #1
0
        public DirectImportOperation(ThumbnailRenderer thumbnailRenderer, ThreadFactory threadFactory)
        {
            this.thumbnailRenderer = thumbnailRenderer;
            this.threadFactory = threadFactory;

            AllowCancel = true;
        }
コード例 #2
0
ファイル: DeskewOperation.cs プロジェクト: semtle/naps2
        public DeskewOperation(ThreadFactory threadFactory, ThumbnailRenderer thumbnailRenderer)
        {
            this.threadFactory     = threadFactory;
            this.thumbnailRenderer = thumbnailRenderer;

            AllowCancel = true;
        }
コード例 #3
0
        public DeskewOperation(ThumbnailRenderer thumbnailRenderer, ScannedImageRenderer scannedImageRenderer)
        {
            this.thumbnailRenderer    = thumbnailRenderer;
            this.scannedImageRenderer = scannedImageRenderer;

            AllowCancel     = true;
            AllowBackground = true;
        }
コード例 #4
0
ファイル: FBrightness.cs プロジェクト: cyanfish/naps2
        public FBrightness(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer)
        {
            this.changeTracker = changeTracker;
            this.thumbnailRenderer = thumbnailRenderer;
            InitializeComponent();

            BrightnessTransform = new BrightnessTransform();
        }
コード例 #5
0
ファイル: WiaScanDriver.cs プロジェクト: cyanfish/naps2
 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;
 }
コード例 #6
0
ファイル: FRotate.cs プロジェクト: cyanfish/naps2
        public FRotate(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer)
        {
            this.changeTracker = changeTracker;
            this.thumbnailRenderer = thumbnailRenderer;
            InitializeComponent();

            RotationTransform = new RotationTransform();
        }
コード例 #7
0
ファイル: FContrast.cs プロジェクト: cyanfish/naps2
        public FContrast(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer)
        {
            this.changeTracker = changeTracker;
            this.thumbnailRenderer = thumbnailRenderer;
            InitializeComponent();

            ContrastTransform = new TrueContrastTransform();
        }
コード例 #8
0
ファイル: FCrop.cs プロジェクト: cyanfish/naps2
        public FCrop(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer)
        {
            this.changeTracker = changeTracker;
            this.thumbnailRenderer = thumbnailRenderer;
            InitializeComponent();

            CropTransform = new CropTransform();
        }
コード例 #9
0
ファイル: ScannedImageList.cs プロジェクト: Mebus/naps2
 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());
 }
コード例 #10
0
ファイル: RecoveryManager.cs プロジェクト: cyanfish/naps2
            public RecoveryOperation(IFormFactory formFactory, ThreadFactory threadFactory, ThumbnailRenderer thumbnailRenderer)
            {
                this.formFactory = formFactory;
                this.threadFactory = threadFactory;
                this.thumbnailRenderer = thumbnailRenderer;

                ProgressTitle = MiscResources.ImportProgress;
                AllowCancel = true;
            }
コード例 #11
0
ファイル: ScannedImageList.cs プロジェクト: Mebus/naps2
 public IEnumerable <int> ResetTransforms(IEnumerable <int> selection)
 {
     Parallel.ForEach(Images.ElementsAt(selection).ToList(), img =>
     {
         img.ResetTransforms();
         img.SetThumbnail(ThumbnailRenderer.RenderThumbnail(img));
     });
     return(selection.ToList());
 }
コード例 #12
0
ファイル: ScannedImageList.cs プロジェクト: yiqideren/naps2
 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());
 }
コード例 #13
0
ファイル: ScannedImageList.cs プロジェクト: yiqideren/naps2
 public IEnumerable <int> ResetTransforms(IEnumerable <int> selection)
 {
     foreach (ScannedImage img in Images.ElementsAt(selection))
     {
         img.ResetTransforms();
         img.SetThumbnail(ThumbnailRenderer.RenderThumbnail(img));
     }
     return(selection.ToList());
 }
コード例 #14
0
 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;
 }
コード例 #15
0
ファイル: ScannedImage.cs プロジェクト: yiqideren/naps2
 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());
 }
コード例 #16
0
ファイル: ThumbnailCache.cs プロジェクト: cyanfish/naps2
 public ThumbnailCache(ThumbnailRenderer thumbnailRenderer)
 {
     this.thumbnailRenderer = thumbnailRenderer;
 }
コード例 #17
0
ファイル: TwainWrapper.cs プロジェクト: cyanfish/naps2
 public TwainWrapper(IFormFactory formFactory, IBlankDetector blankDetector, ThumbnailRenderer thumbnailRenderer)
 {
     this.formFactory = formFactory;
     this.blankDetector = blankDetector;
     this.thumbnailRenderer = thumbnailRenderer;
 }
コード例 #18
0
 public ScannedImageHelper(ThumbnailRenderer thumbnailRenderer, IOperationFactory operationFactory, IOperationProgress operationProgress)
 {
     this.thumbnailRenderer = thumbnailRenderer;
     this.operationFactory  = operationFactory;
     this.operationProgress = operationProgress;
 }
コード例 #19
0
ファイル: ThumbnailCache.cs プロジェクト: ziceptor/naps2
 public ThumbnailCache(ThumbnailRenderer thumbnailRenderer)
 {
     this.thumbnailRenderer = thumbnailRenderer;
 }
コード例 #20
0
ファイル: RecoveryManager.cs プロジェクト: cyanfish/naps2
 public RecoveryManager(IFormFactory formFactory, ThreadFactory threadFactory, ThumbnailRenderer thumbnailRenderer)
 {
     this.formFactory = formFactory;
     this.threadFactory = threadFactory;
     this.thumbnailRenderer = thumbnailRenderer;
 }
コード例 #21
0
ファイル: FDesktop.cs プロジェクト: cyanfish/naps2
        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;
        }
コード例 #22
0
ファイル: ScannedImage.cs プロジェクト: cyanfish/naps2
 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();
 }
コード例 #23
0
ファイル: ImageImporter.cs プロジェクト: cyanfish/naps2
 public ImageImporter(ThumbnailRenderer thumbnailRenderer)
 {
     this.thumbnailRenderer = thumbnailRenderer;
 }
コード例 #24
0
ファイル: PdfSharpImporter.cs プロジェクト: cyanfish/naps2
 public PdfSharpImporter(IErrorOutput errorOutput, IPdfPasswordProvider pdfPasswordProvider, ThumbnailRenderer thumbnailRenderer)
 {
     this.errorOutput = errorOutput;
     this.pdfPasswordProvider = pdfPasswordProvider;
     this.thumbnailRenderer = thumbnailRenderer;
 }