private void btnExtractText_Click(object sender, EventArgs e) { Bitmap bmp = (Bitmap)pictureBoxHiddenText.Image; string extractedText = SteganographyHelperText.extractText(bmp); textBoxExtractedText.Text = extractedText; }
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"); }