Exemplo n.º 1
0
 private void skinHScrollBar1_Scroll(object sender, ScrollEventArgs e)
 {
     if (curBitmap != null)
     {
         k                 = skinHScrollBar2.Value;
         iter              = skinHScrollBar1.Value;
         textBox1.Text     = iter.ToString();
         textBox2.Text     = k.ToString();
         pictureBox1.Image = (Image)zPhoto.AnisotropicFilter(curBitmap, iter, k);
     }
 }
Exemplo n.º 2
0
        public AnisotropicFilterForm(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.AnisotropicFilter(curBitmap, iter, k);
            }
        }