private static void GetImageSize(byte[] imageData, out int width, out int height) { width = ReadInt(imageData, 3 + 15); height = ReadInt(imageData, 3 + 15 + 2 + 2); }