Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        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);
            }
        }
Ejemplo n.º 5
0
        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;
            }
        }
Ejemplo n.º 6
0
        /// <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);
            }
        }
Ejemplo n.º 7
0
 public Form1()
 {
     InitializeComponent();
     this.DoubleBuffered = true;
     zPhoto = new ZPhotoEngineDll();
 }