Bitmap property: Height, Physical Dimension, width, raw format and size
using System;
using System.IO;
using System.Drawing;
class MainClass
{
static public void Main()
{
Bitmap img = new Bitmap("winter.jpg");
Console.WriteLine(img.PhysicalDimension.ToString() );
Console.WriteLine(img.Height.ToString() );
Console.WriteLine(img.Width.ToString() );
Console.WriteLine(img.RawFormat.ToString() );
Console.WriteLine(img.Size.ToString() );
}
}
Related examples in the same category