I have an array of Bitmaps that I'm trying to convert into an array of bytes where each index of the byte array represents a Bitmap. I'm having some trouble figuring out how to do this. If anyone has a suggestion, let me know. Thanks!
private void ConvertBitmapToBytes(Bitmap[] BitmapArray) { byte[][] BitmapBytes = new byte[BitmapArray.Length][]; ImageConverter convert = new ImageConverter(); for (int i = 0; i < BitmapArray.Length; i++) { BitmapBytes[i] = new byte[BitmapArray.Length]; BitmapBytes[i][i] = convert.ConvertTo(BitmapArray[i], typeof(byte[])); } }