Пример #1
0
        private void LoadBtn_Click(object sender, EventArgs e)
        {
            var openFileDialog = new OpenFileDialog
            {
                Filter      = @"Bitmap files(*.bmp)|*.bmp|Jpeg files(*.jpg)|*.jpg|Tiff files(*.tif)|*.tif|Png files(*.png)|*.png|All Files(*.jpg;*.bmp;*.tif;*.png)|*.jpg;*.bmp;*.tif;*.png",
                FilterIndex = 5
            };
            var dialogResult = openFileDialog.ShowDialog();

            if (dialogResult != DialogResult.OK)
            {
                return;
            }
            bitmap = (Bitmap)Image.FromFile(openFileDialog.FileName, false);
            bitmap = ImageLab.Load(bitmap);
            originalImage.Image = bitmap;
        }
Пример #2
0
 private void FourthStageBtn_Click(object sender, EventArgs e)
 {
     fourthStageImg.Image = bitmap = ImageLab.SeedFilling(bitmap, 0, 1);
     fourthStageImg.Image = bitmap = ImageLab.SeedFilling(bitmap, 1, 0);
     fourthStageImg.Image = ImageLab.ThirdStage(bitmap);
 }
Пример #3
0
        private void SecondStageBtn_Click(object sender, EventArgs e)
        {
            bitmap = ImageLab.SecondStage(bitmap);

            secondStageImage.Image = bitmap;
        }
Пример #4
0
 private void button2_Click(object sender, EventArgs e)
 {
     pictureBox1.Image = bitmap = ImageLab.EighthStage(bitmap);
 }
Пример #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     eighthPicutr.Image = bitmap = ImageLab.SeventhStage(bitmap);
 }
Пример #6
0
 private void SeventhStageBtn_Click(object sender, EventArgs e)
 {
     seventhStagePIcture.Image = bitmap = ImageLab.SixthStage(bitmap);
 }
Пример #7
0
 private void SixthStageBtn_Click(object sender, EventArgs e)
 {
     sixthStagePicture.Image = bitmap = ImageLab.FifthStage(bitmap);
 }
Пример #8
0
 private void FifthStageBtn_Click(object sender, EventArgs e)
 {
     fifthPictureBox.Image = bitmap = ImageLab.FourthStage(bitmap);
 }
Пример #9
0
 private void FirstStageBtn_Click(object sender, EventArgs e)
 {
     bitmap = ImageLab.FirstStage(bitmap);
     // bitmap = ConvertTo8Bpp.CopyToBpp(bitmap, 8);
     firstStageImage.Image = bitmap;
 }