private void hideText_Click(object sender, EventArgs e) { StegoAlgoInt ss = new PVDColor(); String str = textBox1.Text; Object obj = ss.stego(basic_image, str, true); modefide_image = (Bitmap)obj; image_mod.Image = modefide_image; MessageBox.Show("The Stego Done!"); }
private void showText_Click(object sender, EventArgs e) { if (basic_image != null) { StegoAlgoInt ss = new PVDColor(); Object obj = ss.stego(basic_image, "", false); if (obj != null) { String aa = (String)obj; StringBuilder thelast = new StringBuilder(); StringBuilder strChar = new StringBuilder(); for (int i = 0; i < aa.Length; ) { strChar.Clear(); for (int j = 0; j < 8; j++) { if (i < aa.Length) strChar.Append(aa[i++]); } int b = Convert.ToInt32(strChar.ToString(), 2); //textBox2.Text += b.ToString() + " : " + strChar.ToString() + " /n "; thelast.Append(((char)b).ToString()); } textBox1.Text = thelast.ToString(); //thelast.ToString(); MessageBox.Show("Done!"); } else { textBox1.Text = "No Stego In This Image !!"; } } else { textBox1.Text = "Please Open Image !!"; } }