Bitmap.PhysicalDimension : Bitmap « System.Drawing « C# / C Sharp by API






Bitmap.PhysicalDimension

 


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

1.new Bitmap(String fileName)
2.Bitmap.CompositingMode
3.Bitmap.Height
4.Bitmap.HorizontalResolution
5.Bitmap.MakeTransparent( );
6.Bitmap.PixelFormat
7.Bitmap.RawFormat
8.Bitmap.SetResolution(600f, 600f);
9.Bitmap.Size
10.Bitmap.Width