我想得到一个图片文件的宽和高.怎么做.下面的代码出错,说未将对象引用到实例.
bhys 2003-11-27 10:25:23 Dim filepath As String
Dim imagesize As System.Drawing.Image
Dim height As String
Dim width As String
filepath = Server.MapPath("files\DSC00204.JPG")
imagesize.FromFile(filepath)
height = imagesize.Size.Height.ToString
width = imagesize.Size.Width.ToString
Response.Write("宽度" & width & "高度" & height)