I want to get the width & height of the image file..
Mine code is currently getting the file size, I also want to get the width & height.How to get width & height,kindly help me.
Imports System.IO
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
Dim sFileSize As String
Dim FS As System.IO.FileInfo = New System.IO.FileInfo("C:\Documents and Settings\Mansi\Desktop\Image.jpg")
sFileSize = FS.Length.ToString
MsgBox(sFileSize)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub