/// <summary> /// Given a Bitmap and a byte array, returns the Bitmap with the byte array hidden inside. /// </summary> /// <param name="image">The image in which to hide the byte array.</param> /// <param name="bytes">The byte array to hide in the image.</param> /// <returns>The given image with the given byte array hidden inside.</returns> private static Bitmap ImageWithHiddenMessage(Bitmap image, byte[] bytes) { Steganography steg = new Steganography(image); return steg.ImageWithHiddenMessage(bytes); }
/// <summary> /// Given an image, returns the byte array hidden inside, if any. /// </summary> /// <param name="image">The image from which to find a hidden byte array.</param> /// <returns>The byte array hidden inside the image. If no byte array is found hidden in the image, returns null.</returns> private static byte[] HiddenBytes(Bitmap image) { Steganography steg = new Steganography(image); return steg.HiddenBytes(); }