Exemple #1
0
 public TagsCloudCreator(TextProcessor textProcessor,
                         IImageBuilder imageBuilder, IServiceFactory <IImageSaver> imageSaverFactory,
                         IServiceFactory <ITagsGenerator> tagsGeneratorFactory)
 {
     this.tagsGeneratorFactory = tagsGeneratorFactory;
     this.textProcessor        = textProcessor;
     this.imageSaverFactory    = imageSaverFactory;
     this.imageBuilder         = imageBuilder;
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="imageValidation"></param>
 /// <param name="imageBuilder"></param>
 /// <param name="attachmentManager"></param>
 /// <param name="videoManager"></param>
 /// <param name="videoValidator"></param>
 public FileManager(IImageValidator imageValidation, IImageBuilder imageBuilder, IAttachmentManager attachmentManager, IVideoManager videoManager, IVideoValidator videoValidator, IConfigurationManager configurationManager)
 {
     _imageValidation      = imageValidation;
     _imageBuilder         = imageBuilder;
     _attachmentManager    = attachmentManager;
     _videoManager         = videoManager;
     _videoValidator       = videoValidator;
     _configurationManager = configurationManager;
 }
Exemple #3
0
 public ConsoleUi(IReader[] readers,
                  IImageBuilder tagCloudImageCreator, ILayoutAlgorithm layoutAlgorithm,
                  IImageSaver imageSaver,
                  Filter filter, WordConverter wordConverter)
 {
     this.filter               = filter;
     this.wordConverter        = wordConverter;
     this.readers              = readers;
     this.tagCloudImageCreator = tagCloudImageCreator;
     this.imageSaver           = imageSaver;
     this.layoutAlgorithm      = layoutAlgorithm;
 }
Exemple #4
0
 public ApplicationCore(ReaderFinder readerFinder,
                        IImageBuilder tagCloudImageBuilder, ILayoutAlgorithm layoutAlgorithm,
                        IImageSaver imageSaver,
                        Filter filter, WordConverter wordConverter)
 {
     this.filter               = filter;
     this.wordConverter        = wordConverter;
     this.readerFinder         = readerFinder;
     this.tagCloudImageBuilder = tagCloudImageBuilder;
     this.imageSaver           = imageSaver;
     this.layoutAlgorithm      = layoutAlgorithm;
 }
 public void ConstructImage(IImageBuilder imgBuilder)
 {
     // calls the appropriate methods of the builder. Additional logic can be placed here depending on the type if builder
     imgBuilder.GenerateSopClass();
     imgBuilder.SetTheModality();
 }
Exemple #6
0
 public SeoBaseBuilder(IImageBuilder imageBuilder)
 {
     _imageBuilder = imageBuilder;
 }
 public ImageProvider(IImagesRepository imagesRepository,
                      IImageBuilder imageBuilder)
 {
     this.imagesRepository = imagesRepository;
     this.imageBuilder     = imageBuilder;
 }
 public HighlightBlockBuilder(IImageBuilder imageBuilder)
 {
     _imageBuilder = imageBuilder;
 }
Exemple #9
0
 private void CreateBuilder()
 {
     if (index == LBEffects.SelectedIndex) return;
     index = LBEffects.SelectedIndex;
     if (index == -1) return;
     builderobj = (IImageBuilder)dt.Rows[index][2];
     builderobj.SetSourceImage(Source);
     option = (ImageOption)dt.Rows[index][3];
     grid.SelectedObject = option;
 }
Exemple #10
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="processable"></param>
        /// <param name="sourcePath"></param>
        /// <param name="savePath"></param>
        /// <returns></returns>
        public static TryResult ProcessBitmap(IImageBuilder processable, string sourcePath, string savePath)
        {
            if (processable == null) return false;
            if (!File.Exists(sourcePath)) return false;

            try
            {
                processable.SetSourceImage(sourcePath);
                var image = processable.ProcessBitmap();
                image.Save(savePath);
            }
            catch (Exception ex)
            {
                return ex;
            }

            return true;
        }
Exemple #11
0
        public SiteHeaderBuilder(IImageBuilder imageBuilder, IUmbracoContextFactory umbracoContextFactory)
        {
            _imageBuilder = imageBuilder;

            _umbracoContextFactory = umbracoContextFactory;
        }
Exemple #12
0
 public JobRunner(IDocker docker, IImageBuilder imageBuilder)
 {
     this.docker       = docker;
     this.imageBuilder = imageBuilder;
 }
Exemple #13
0
        private void CreateBuilder()
        {
            builderobj = comboBox1.SelectedValue as IImageBuilder;

            option = builderobj.CreateOption();
            grid.SelectedObject = option;
        }
Exemple #14
0
 public ImageBuffer(IBitmapScanner bitmapScanner,
                    IImageBuilder imageBuilder)
 {
     _scanner      = image => bitmapScanner.Scan(image);
     _imageBuilder = imageBuilder;
 }