Get image Width and Height with VB.Net -
in vb.net need read through folder total of images , their: file name, height in pixels , width in pixels , assign values individual variables.
thanks.
mike.
try this:
imports system.io imports system.drawing module module1 sub main() dim s new directoryinfo("c:/files") dim files fileinfo() = s.getfiles("*.jpg") each f fileinfo in files dim bmp new bitmap(f.fullname) console.writeline("width: " & bmp.width.tostring() + " > height: " & bmp.height.tostring()) next console.read() end sub end module
vb.net
No comments:
Post a Comment