Esempio n. 1
0
        protected ImageManager(Image image, ImageProperty imageProperty,WaterMark waterMark = null)
        {
            Image = image;
            _waterMark = waterMark;
            ImageProperty = imageProperty;

            SetImageCrop(new CustomImageCrop());
            SetImageSharpen(new ImageSharpen());
        }
        public static ImageManager Create(ImageManagerType manager, Image image, ImageProperty parameterManager)
        {
            ImageManager imageManager = null;

            switch (manager)
            {
                case ImageManagerType.Resize:
                    imageManager = new ResizeImageManager(image, parameterManager);
                    break;
            }

            return imageManager;
        }
 public ResizeImageManager(Image image, ImageProperty imageProperty)
     : base(image, imageProperty)
 {
     SetImageSize(new ProportionalImageSize(image));
 }