• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

Image size

How can I obtain the size of an image (number of pixels horizontal and vertical) in VB.NET 2003? The image will be a file on the harddisk in either BMP, GIF, JPG, PNG, ICO or EMF format.

Thanks
0
SETP
Asked:
SETP
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Dim img As Image = Image.FromFile("c:\someImage.ext")
MsgBox(img.Width & "x" & img.Height)
img.Dispose()
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now