Esempio n. 1
0
        private void bunifuTileButton4_Click(object sender, EventArgs e)
        {
            try
            {
                bmp = (Bitmap)MainPictureBox.Image;

                var SecretMessage = Stegnography.extractText(bmp);
                var sm            = new ShowMessage();
                sm.userMessage.Text = SecretMessage;

                using (TextReader tr = new StreamReader(path))
                {
                    var langugeChoused = tr.ReadLine();

                    if (langugeChoused == "arabic")
                    {
                        sm.bunifuCustomLabel2.Text = "الرسالة";
                    }
                }


                sm.Show();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                MessageBox.Show("Pleas select an image !");
            }
        }
Esempio n. 2
0
        public void Hideit(string a, Bitmap bmp)
        {
            try
            {
                if (a.Equals(""))
                {
                    MessageBox.Show("Please Enter Some Text You Want to Hide.", "Warning");

                    return;
                }

                bmp = Stegnography.embedText(a, bmp);

                MessageBox.Show("Your Text is now Hidden in the Image.\nUse the Save Image option from Menu.", "Done");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                MessageBox.Show("You didnt chouse an image");
            }
        }