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
|