Bitmap.PhysicalDimension : Bitmap « System.Drawing « VB.Net by API






Bitmap.PhysicalDimension

  

Imports System
Imports System.Windows.Forms
Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Text
Imports System.Drawing.Imaging

Public Class MainClass

  Shared Sub Main()

    Dim Bmp As Bitmap = New Bitmap("figure2.bmp")
    Console.WriteLine(Bmp.Height.ToString())
    Console.WriteLine(Bmp.Width.ToString())
    Console.WriteLine(Bmp.VerticalResolution.ToString())
    Console.WriteLine(Bmp.HorizontalResolution.ToString())
    Console.WriteLine(Bmp.PixelFormat.ToString())
    Console.WriteLine(Bmp.Size.ToString())
    Console.WriteLine(Bmp.PhysicalDimension.ToString())

  End Sub
  
End Class

   
    
  








Related examples in the same category

1.New Bitmap
2.New Bitmap(Int w, Int y)
3.New Bitmap(String fileName)
4.Bitmap.FromFile(String fileName)
5.Bitmap.GetPixel
6.Bitmap.GetPixel(Int x, Int y)
7.Bitmap.Height
8.Bitmap.MakeTransparent
9.Bitmap.Palette
10.Bitmap.PixelFormat
11.Bitmap.Save(String fileName, ImageFormat if)
12.Bitmap.SetPixel(Int x, Int y, Color clr)
13.Bitmap.SetResolution(Single h, Single v)
14.Bitmap.VerticalResolution
15.Bitmap.Width