public RadialBlurForm(string path) { InitializeComponent(); this.DoubleBuffered = true; zPhoto = new ZPhotoEngineDll(); Bitmap tmp = new Bitmap(path); if (tmp != null) { curBitmap = new Bitmap(tmp, 150 * tmp.Width / Math.Max(tmp.Width, tmp.Height), 150 * tmp.Height / Math.Max(tmp.Width, tmp.Height)); pictureBox1.Image = (Image)zPhoto.RadialBlurProcess(curBitmap, amount); } }
public SurfaceBlurForm(string path) { InitializeComponent(); this.DoubleBuffered = true; zPhoto = new ZPhotoEngineDll(); Bitmap tmp = new Bitmap(path); if (tmp != null) { curBitmap = new Bitmap(tmp, 150 * tmp.Width / Math.Max(tmp.Width, tmp.Height), 150 * tmp.Height / Math.Max(tmp.Width, tmp.Height)); pictureBox1.Image = (Image)zPhoto.SurfaceBlur(curBitmap, threshold, radius); } }
public MotionBlurForm(string path) { InitializeComponent(); this.DoubleBuffered = true; zPhoto = new ZPhotoEngineDll(); Bitmap tmp = new Bitmap(path); if (tmp != null) { curBitmap = new Bitmap(tmp, 150 * tmp.Width / Math.Max(tmp.Width, tmp.Height), 150 * tmp.Height / Math.Max(tmp.Width, tmp.Height)); pictureBox1.Image = (Image)zPhoto.MotionBlur(curBitmap, angle, distance); } }
public GaussBlurForm(string path) { InitializeComponent(); this.DoubleBuffered = true; zPhoto = new ZPhotoEngineDll(); Bitmap tmp = new Bitmap(path); if (tmp != null) { curBitmap = new Bitmap(tmp, 300 * tmp.Width / Math.Max(tmp.Width, tmp.Height), 300 * tmp.Height / Math.Max(tmp.Width, tmp.Height)); pictureBox1.Image = (Image)zPhoto.GaussFilterProcess(curBitmap, (float)radius); } }
public ColorbalanceForm(string path) { InitializeComponent(); this.DoubleBuffered = true; zPhoto = new ZPhotoEngineDll(); Bitmap tmp = new Bitmap(path); if (tmp != null) { curBitmap = new Bitmap(tmp, 150 * tmp.Width / Math.Max(tmp.Width, tmp.Height), 150 * tmp.Height / Math.Max(tmp.Width, tmp.Height)); pictureBox1.Image = (Image)curBitmap; } }
/// <summary> /// /// </summary> /// <param name="path"></param> public BlackWhiteForm(string path) { InitializeComponent(); this.DoubleBuffered = true; comboBox1.SelectedIndex = 0; zPhoto = new ZPhotoEngineDll(); Bitmap tmp = new Bitmap(path); if (tmp != null) { curBitmap = new Bitmap(tmp, 200 * tmp.Width / Math.Max(tmp.Width, tmp.Height), 200 * tmp.Height / Math.Max(tmp.Width, tmp.Height)); pictureBox1.Image = (Image)curBitmap; BlackWhite(0); } }
public Form1() { InitializeComponent(); this.DoubleBuffered = true; zPhoto = new ZPhotoEngineDll(); }