Beispiel #1
0
 public FormClear_new()
 {
     InitializeComponent();
     image1            = new Bitmap(Properties.Resources.image);
     pictureBox1.Image = resizeImage(image1, this.pictureBox1.Size);
     pictureBox1.Invalidate();
     koch = new KochClear_new(this);
 }
Beispiel #2
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            if (image1 != null)
            {
                image1.Dispose();
                image1 = null;
            }
            if (image2 != null)
            {
                image2.Dispose();
                image2 = null;
            }

            if (koch.image1 != null)
            {
                koch.image1.Dispose();
            }
            koch = new KochClear_new(this);
            pictureBox2.Image = null;
            pictureBox2.Size  = panel2.Size;
            pictureBox2.Top   = 0;
            pictureBox2.Left  = 0;
            pictureBox1.Size  = panel1.Size;
            pictureBox1.Top   = 0;
            pictureBox1.Left  = 0;
            image1            = new Bitmap("Res//image.png");
            pictureBox1.Image = resizeImage(image1, this.pictureBox1.Size);
            pictureBox1.Invalidate();

            this.textBox2.Text       = "";
            this.label10.Text        = "Макс. объем встраиваемой инф.:";
            this.label9.Text         = "Количество блоков: ";
            this.label8.Text         = "Размер сообщения: ";
            this.label7.Text         = "Размер контейнера: ";
            this.textBox1.Text       = "";
            this.label5.Text         = "Размер блоков";
            this.label4.Text         = "25";
            this.trackBar1.Value     = 25;
            this.butExtr.Enabled     = false;
            this.butInlining.Enabled = false;
            this.richTextBox1.Text   = "";
            this.label1.Text         = "После очистки";
            this.label2.Text         = "Исходное изображение ";
            this.progressBar1.Value  = 0;
        }