예제 #1
0
        private void btnExtractText_Click(object sender, EventArgs e)
        {
            Bitmap bmp = (Bitmap)pictureBoxHiddenText.Image;

            string extractedText = SteganographyHelperText.extractText(bmp);

            textBoxExtractedText.Text = extractedText;
        }
예제 #2
0
        private void btnHideText_Click(object sender, EventArgs e)
        {
            Bitmap bmp  = (Bitmap)pictureBoxImg.Image;
            string text = textBoxHiddenText.Text;

            bmp = SteganographyHelperText.embedText(text, bmp);

            pictureBoxImg.Image = bmp;

            btnSave.Enabled = true;

            MessageBox.Show("Your text was hidden in the image successfully!", "Done");
        }