예제 #1
0
        private void UpdatePreview()
        {
            Stopwatch timer = new Stopwatch();

            timer.Start();
            pbPreview.Image     = GetImageForExport();
            lblPreview.Text     = string.Format("Preview image ({0}x{1}) - {2} ms", pbPreview.Image.Width, pbPreview.Image.Height, timer.ElapsedMilliseconds);
            pbPreviewZoom.Image = ImageEffectsHelper.Zoom(pbPreview.Image, 8, 12);
        }
예제 #2
0
        public ImageEffectsGUI(Image img)
        {
            InitializeComponent();
            plugins = PluginManager.LoadPlugins <IPluginInterface>(Application.StartupPath);
            FillPluginsList();

            DefaultImage = img;

            pbDefault.Image     = DefaultImage;
            pbDefaultZoom.Image = ImageEffectsHelper.Zoom(pbDefault.Image, 8, 12);
            lblDefault.Text     = string.Format("Default image ({0}x{1})", pbDefault.Image.Width, pbDefault.Image.Height);
        }
예제 #3
0
 public override Image ApplyEffect(Image img)
 {
     return(ImageEffectsHelper.DrawReflection(img, percentage, transparency, offset, skew, skewSize));
 }
예제 #4
0
 public override Image ApplyEffect(Image img)
 {
     return(ImageEffectsHelper.DrawBorder(borderStyle, img, color, size));
 }