Bitmap Information: Width, Height, Vertical Resolution, Pixel Format, Physical Dimension : Bitmap « 2D « VB.Net






Bitmap Information: Width, Height, Vertical Resolution, Pixel Format, Physical Dimension

Bitmap Information: Width, Height, Vertical Resolution, Pixel Format, Physical Dimension
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.Manipulate Bitmap ColorManipulate Bitmap Color
2.Output Color Palette for a BitmapOutput Color Palette for a Bitmap
3.Draw to a Bitmap object and save it as a image file
4.Load an Image from file and draw on the loaded imageLoad an Image from file and draw on the loaded image