private void btnExtractImg_Click(object sender, EventArgs e) { Bitmap EncryptedImage = (Bitmap)pictureBoxEncrypted.Image; Bitmap hiddenImage = new Bitmap(EncryptedImage.Width, EncryptedImage.Height); hiddenImage = SteganographyHelperImage.decryptImage(EncryptedImage, hiddenImage); pictureBoxExtracted.Image = hiddenImage; btnSaveHiddenImg.Enabled = true; }
private void btnGenerate_Click(object sender, EventArgs e) { Bitmap mainImage = new Bitmap(pictureBoxImgOrig.Image); Bitmap hiddenImage = new Bitmap(pictureBoxImgHidden.Image); mainImage = SteganographyHelperImage.encryptImage(mainImage, hiddenImage); pictureBoxResult.Image = mainImage; btnSaveHidden.Enabled = true; }
private void buttonBrowseHidden_Click_1(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Bitmap Image (.bmp)|*.bmp|Gif Image (.gif)|*.gif |JPEG Image (.jpeg)|*.jpeg |JPG Image (.jpg)|*.jpg |Png Image (.png)|*.png"; if (ofd.ShowDialog() == DialogResult.OK) { Bitmap img = new Bitmap(ofd.FileName); pictureBoxImgHidden.Image = SteganographyHelperImage.toGrayscale(img); } btnGenerate.Enabled = true; }