以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  怎么 获取图片的尺寸?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=121453)

--  作者:有点甜
--  发布时间:2018/7/6 14:46:00
--  

Dim dlg As New OpenFileDialog
dlg.Filter = "图形文件|*.bmp;*.jpg;*.gif;*.png;*.tif"

If dlg.ShowDialog = DialogResult.OK Then
    Dim bmp As new bitmap(dlg.FileName)
    msgbox(bmp.width)
    msgbox(bmp.height)
    bmp.dispose
End If