Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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;
            }
        }
Пример #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);
            }
        }
Пример #7
0
 public Form1()
 {
     InitializeComponent();
     this.DoubleBuffered = true;
     zPhoto = new ZPhotoEngineDll();
 }