private void extractProper_Click(object sender, EventArgs e) { stegoImage = (Bitmap)openedImage.Image; string extractedText = StegOperation.extractMessageInvert(stegoImage); //MessageBox.Show("Message successfully extracted from the image", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); textBox.Text = extractedText; }
private void hideText_Click(object sender, EventArgs e) { Bitmap bmp = (Bitmap)openedImage.Image; if (textBox.Text == "" || textBox.TextLength == 0) { MessageBox.Show("Textbox cannot be empty! Please enter some text!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { stegoImage = StegOperation.embedMessage(textBox.Text, bmp); if (stegoImage != null) { MessageBox.Show("Message successfully hidden in the image", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }