public RawImage(Stream stream, int length) { ImageData = new byte[length]; stream.Read(ImageData, 0, length); }