Beispiel #1
0
        private void buttonConvert_Click(object sender, EventArgs e)
        {
            if (pictureBoxLeft.BackgroundImage == null)
            {
                MessageBox.Show("No selected image");
                return;
            }

            pictureBoxMiddle.Image = JPEGAnalyzer.convertToJPEG(pictureBoxLeft.BackgroundImage as Bitmap);
        }
Beispiel #2
0
        private void buttonCompare_Click(object sender, EventArgs e)
        {
            if (pictureBoxLeft.BackgroundImage == null || pictureBoxMiddle.Image == null)
            {
                MessageBox.Show("Load an image and convert it beforehands");
                return;
            }

            (pictureBoxRight.Image, pictureBoxLeft.Image) =
                JPEGAnalyzer.xor(pictureBoxLeft.BackgroundImage as Bitmap, pictureBoxMiddle.Image as Bitmap, updateProgressBar);

            MessageBox.Show("Done.");
            progressBar1.Value = 0;
        }