Exemplo n.º 1
0
 public WiaScanDriver(IWiaTransfer wiaTransfer, ThreadFactory threadFactory, IBlankDetector blankDetector, ThumbnailRenderer thumbnailRenderer)
 {
     this.wiaTransfer       = wiaTransfer;
     this.threadFactory     = threadFactory;
     this.blankDetector     = blankDetector;
     this.thumbnailRenderer = thumbnailRenderer;
 }
Exemplo n.º 2
0
        public DirectImportOperation(ThumbnailRenderer thumbnailRenderer, ThreadFactory threadFactory)
        {
            this.thumbnailRenderer = thumbnailRenderer;
            this.threadFactory     = threadFactory;

            AllowCancel = true;
        }
Exemplo n.º 3
0
 public TwainWrapper(IFormFactory formFactory, IBlankDetector blankDetector, ThumbnailRenderer thumbnailRenderer, ScannedImageHelper scannedImageHelper)
 {
     this.formFactory        = formFactory;
     this.blankDetector      = blankDetector;
     this.thumbnailRenderer  = thumbnailRenderer;
     this.scannedImageHelper = scannedImageHelper;
 }
Exemplo n.º 4
0
        public DirectImportOperation(ThumbnailRenderer thumbnailRenderer)
        {
            this.thumbnailRenderer = thumbnailRenderer;

            AllowCancel     = true;
            AllowBackground = true;
        }
Exemplo n.º 5
0
        public FCrop(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer)
        {
            this.changeTracker     = changeTracker;
            this.thumbnailRenderer = thumbnailRenderer;
            InitializeComponent();

            CropTransform = new CropTransform();
        }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 7
0
        public FBrightness(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer)
        {
            this.changeTracker     = changeTracker;
            this.thumbnailRenderer = thumbnailRenderer;
            InitializeComponent();

            BrightnessTransform = new BrightnessTransform();
        }
Exemplo n.º 8
0
        public FRotate(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer)
        {
            this.changeTracker     = changeTracker;
            this.thumbnailRenderer = thumbnailRenderer;
            InitializeComponent();

            RotationTransform = new RotationTransform();
        }
Exemplo n.º 9
0
        public FContrast(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer)
        {
            this.changeTracker     = changeTracker;
            this.thumbnailRenderer = thumbnailRenderer;
            InitializeComponent();

            ContrastTransform = new TrueContrastTransform();
        }
Exemplo n.º 10
0
 public PdfSharpImporter(IErrorOutput errorOutput, IPdfPasswordProvider pdfPasswordProvider, ThumbnailRenderer thumbnailRenderer, ScannedImageRenderer scannedImageRenderer, IPdfRenderer pdfRenderer)
 {
     this.errorOutput          = errorOutput;
     this.pdfPasswordProvider  = pdfPasswordProvider;
     this.thumbnailRenderer    = thumbnailRenderer;
     this.scannedImageRenderer = scannedImageRenderer;
     this.pdfRenderer          = pdfRenderer;
 }
Exemplo n.º 11
0
            public RecoveryOperation(IFormFactory formFactory, ThreadFactory threadFactory, ThumbnailRenderer thumbnailRenderer)
            {
                this.formFactory       = formFactory;
                this.threadFactory     = threadFactory;
                this.thumbnailRenderer = thumbnailRenderer;

                ProgressTitle = MiscResources.ImportProgress;
                AllowCancel   = true;
            }
Exemplo n.º 12
0
        public FSharpen(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer, ScannedImageRenderer scannedImageRenderer)
        {
            this.changeTracker        = changeTracker;
            this.thumbnailRenderer    = thumbnailRenderer;
            this.scannedImageRenderer = scannedImageRenderer;
            InitializeComponent();

            SharpenTransform = new SharpenTransform();
        }
Exemplo n.º 13
0
        public FBlackWhite(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer, ScannedImageRenderer scannedImageRenderer)
        {
            this.changeTracker        = changeTracker;
            this.thumbnailRenderer    = thumbnailRenderer;
            this.scannedImageRenderer = scannedImageRenderer;
            InitializeComponent();

            BlackWhiteTransform = new BlackWhiteTransform();
        }
Exemplo n.º 14
0
        public FHueSaturation(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer, ScannedImageRenderer scannedImageRenderer)
        {
            this.changeTracker        = changeTracker;
            this.thumbnailRenderer    = thumbnailRenderer;
            this.scannedImageRenderer = scannedImageRenderer;
            InitializeComponent();

            HueTransform        = new HueTransform();
            SaturationTransform = new SaturationTransform();
        }
Exemplo n.º 15
0
        public FBrightnessContrast(ChangeTracker changeTracker, ThumbnailRenderer thumbnailRenderer, ScannedImageRenderer scannedImageRenderer)
        {
            this.changeTracker        = changeTracker;
            this.thumbnailRenderer    = thumbnailRenderer;
            this.scannedImageRenderer = scannedImageRenderer;
            InitializeComponent();

            BrightnessTransform   = new BrightnessTransform();
            TrueContrastTransform = new TrueContrastTransform();
        }
Exemplo n.º 16
0
        static EditorKernel()
        {
            kernel.Bind <WelcomePage>().ToSelf().InSingletonScope();
            kernel.Bind <IWelcomePage>().ToMethod(context => context.Kernel.Get <WelcomePage>()).InSingletonScope();

            kernel.Bind <ProjectExplorerPanel>().ToSelf().InSingletonScope();
            kernel.Bind <IProjectExplorerPanel>().ToMethod(context => context.Kernel.Get <ProjectExplorerPanel>()).InSingletonScope();

            kernel.Bind <PropertiesPanel>().ToSelf().InSingletonScope();
            kernel.Bind <IPropertiesPanel>().ToMethod(context => context.Kernel.Get <PropertiesPanel>()).InSingletonScope();

            kernel.Bind <ParametersPanel>().ToSelf().InSingletonScope();
            kernel.Bind <IParametersPanel>().ToMethod(context => context.Kernel.Get <ParametersPanel>()).InSingletonScope();

            kernel.Bind <ResourceManagerPanel>().ToSelf().InSingletonScope();
            kernel.Bind <IResourceManagerPanel>().ToMethod(context => context.Kernel.Get <ResourceManagerPanel>()).InSingletonScope();

            kernel.Bind <SceneExplorerPanel>().ToSelf().InSingletonScope();
            kernel.Bind <ISceneExplorerPanel>().ToMethod(context => context.Kernel.Get <SceneExplorerPanel>()).InSingletonScope();

            kernel.Bind <StatisticsPanel>().ToSelf().InSingletonScope();
            kernel.Bind <IStatisticsPanel>().ToMethod(context => context.Kernel.Get <StatisticsPanel>()).InSingletonScope();

            kernel.Bind <LogPanel>().ToSelf().InSingletonScope();
            kernel.Bind <ILogPanel>().ToMethod(context => context.Kernel.Get <LogPanel>()).InSingletonScope();

            kernel.Bind <ColorPickerWindow>().ToSelf().InSingletonScope();


            kernel.Bind <Graphics>().ToMethod(context => {
                Graphics graphics = new Graphics();
                graphics.Init();
                return(graphics);
            }).InSingletonScope();
            kernel.Bind <Audio>().ToSelf().InSingletonScope();
            kernel.Bind <ParameterManager>().ToSelf().InSingletonScope();
            kernel.Bind <ResourceManager>().ToSelf().InSingletonScope();
            kernel.Bind <ThumbnailRenderer>().ToMethod(context => {
                ThumbnailRenderer renderer = new ThumbnailRenderer();
                renderer.Init(context.Kernel.Get <ResourceContext>(), 200, 200);
                return(renderer);
            }).InSingletonScope();
            kernel.Bind <ResourceContext>().ToMethod(context => {
                ParameterManager parameterManager = context.Kernel.Get <ParameterManager>();
                ResourceContext resourceContext   = new ResourceContext(
                    context.Kernel.Get <Graphics>(),
                    context.Kernel.Get <Audio>(),
                    parameterManager,
                    context.Kernel.Get <ScriptEngine>(),
                    context.Kernel.Get <Physics>(),
                    context.Kernel.Get <ResourceManager>());
                resourceContext.Init();
                parameterManager.InitDefaultTextures(resourceContext);
                return(resourceContext);
            }).InSingletonScope();
            kernel.Bind <EditorSettings>().ToMethod(context => {
                return(Controls.Workspace.Extensions.ReadFromBinaryFile <EditorSettings>(EditorSettings.EDITOR_SETTINGS_FILE_NAME, new Type[] { typeof(SceneEditorState) }) ?? new EditorSettings());
            }).InSingletonScope();
            kernel.Bind <Managed.Core.Timer>().ToSelf().InSingletonScope();
            kernel.Bind <ScriptEngine>().ToMethod(context => {
                ScriptEngine scriptEngine = new ScriptEngine();
                scriptEngine.Init(context.Kernel.Get <Managed.Core.Timer>());
                return(scriptEngine);
            }).InSingletonScope();
            kernel.Bind <Physics>().ToSelf().InSingletonScope();
        }
Exemplo n.º 17
0
 public RecoveryManager(IFormFactory formFactory, ThumbnailRenderer thumbnailRenderer, IOperationProgress operationProgress)
 {
     this.formFactory       = formFactory;
     this.thumbnailRenderer = thumbnailRenderer;
     this.operationProgress = operationProgress;
 }
Exemplo n.º 18
0
 public RecoveryManager(IFormFactory formFactory, ThreadFactory threadFactory, ThumbnailRenderer thumbnailRenderer)
 {
     this.formFactory       = formFactory;
     this.threadFactory     = threadFactory;
     this.thumbnailRenderer = thumbnailRenderer;
 }
Exemplo n.º 19
0
 public TwainWrapper(IFormFactory formFactory, IBlankDetector blankDetector, ThumbnailRenderer thumbnailRenderer)
 {
     this.formFactory       = formFactory;
     this.blankDetector     = blankDetector;
     this.thumbnailRenderer = thumbnailRenderer;
 }
Exemplo n.º 20
0
 public ImageImporter(ThumbnailRenderer thumbnailRenderer)
 {
     this.thumbnailRenderer = thumbnailRenderer;
 }
Exemplo n.º 21
0
 public WorkerService(TwainWrapper twainWrapper, ThumbnailRenderer thumbnailRenderer, MapiWrapper mapiWrapper)
 {
     this.twainWrapper      = twainWrapper;
     this.thumbnailRenderer = thumbnailRenderer;
     this.mapiWrapper       = mapiWrapper;
 }