private void button2_Click(object sender, EventArgs e)
        {
            Extracted_Watermark frm4 = new Extracted_Watermark();

            frm4.Show();

            // Recover the hidden image.
            int num_bits = 2;

            frm4.pictureBox1.Image = Watermark_Invisible.RecoverImage(
                (Bitmap)pictureBox1.Image, num_bits);
        }
Example #2
0
        // Hide and then recover the image.
        private void btnGo_Click(object sender, EventArgs e)
        {
            Cursor = Cursors.WaitCursor;
            int num_bits = (int)nudHiddenBits.Value;

            // Hide the image.

            picCombined.Image = Watermark_Invisible.HideImage(
                (Bitmap)picVisible.Image,
                (Bitmap)picHidden.Image, num_bits);


            // Recover the hidden image.
            picRecovered.Image = Watermark_Invisible.RecoverImage(
                (Bitmap)picCombined.Image, num_bits);
            Cursor = Cursors.Default;
        }