using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using System.IO;
public class Program
{
public static void Main()
var bytes = new byte[10];
var stream = new MemoryStream(bytes);
var image = Image.FromStream(stream);
Console.WriteLine(image.PixelFormat);
}