ImageConverter byte a
问题 am trying to convert a grayscale image to a byte array. I use the following code. however, the byte array generated is not of the logical size. ImageConverter converter = new ImageConverter(); byte[] test = (byte[])converter.ConvertTo(gpuMatch.Bitmap,typeof(byte[])); the image is a grayscale 792x410 8 bit depth. so should'nt the array size be 324720 bytes? i am getting something close to 140122 elements in the byte array. ImageConverter ic = new ImageConverter(); Image img = (Image)ic