【发布时间】:2016-01-20 07:23:11
【问题描述】:
这是我要设置图片网址并动态查找该图片的高度和宽度的图片。
<asp:Image ID="imgLogo" runat="server"/>
//分配图片路径。
string Path= Server.MapPath("~/Images/testImage.jpg")
System.Drawing.Bitmap img = new System.Drawing.Bitmap(Path);
//获取图像的高度和宽度。
int height=0, width=0;
height = img.Height;
width = img.Width;
【问题讨论】:
-
您的问题是什么?这段代码有什么问题?
-
您遇到了什么问题或错误?