Exemple #1
0
        private void errorDithering_Click(object sender, EventArgs e)
        {
            Form3 f3 = new Form3();
            if (f3.ShowDialog() == DialogResult.OK)
            {
                Bitmap b = ErrorDitheringAlgorithm.ErrorDitheringQuantization(Bmp, f3.Red, f3.Green, f3.Blue);

                Form2 f = new Form2();
                f.Text = "Error dithering algorithm";
                f.Picture = b;
                f.ShowDialog();
            }
        }
Exemple #2
0
        private void uniform_Click(object sender, EventArgs e)
        {
            Form3 f3 = new Form3();
            if (f3.ShowDialog() == DialogResult.OK)
            {
                Bitmap b = UniformAlgorithm.UniformQuantization(Bmp, f3.Red, f3.Green, f3.Blue);

                Form2 f = new Form2();
                f.Text = "Uniform algorithm";
                f.Picture = b;
                f.ShowDialog();
            }
        }