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); }
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); }
public override Image ApplyEffect(Image img) { return(ImageEffectsHelper.DrawReflection(img, percentage, transparency, offset, skew, skewSize)); }
public override Image ApplyEffect(Image img) { return(ImageEffectsHelper.DrawBorder(borderStyle, img, color, size)); }