我想在C#中检查来自url的大小图像.例如:网址:http://img.khoahoc.tv/photos/image/2015/05/14/hang_13.jpg
请帮我.非常感谢你
下载并检查:
string image = @"http://img.khoahoc.tv/photos/image/2015/05/14/hang_13.jpg";
byte[] imageData = new WebClient().DownloadData(image);
MemoryStream imgStream = new MemoryStream(imageData);
Image img = Image.FromStream(imgStream);
int wSize = img.Width;
int hSize = img.Height;
Run Code Online (Sandbox Code Playgroud)