简体   繁体   中英

get image width and height from webClient response

I want to get image sizes (width and height)

徽标示例

var source = "http://c.s-microsoft.com/en-us/CMSImages/mslogo.png?version=856673f8-e6be-0476-6669-d5bf2300391d";
WebClient client = new WebClient();
client.OpenRead(source);
WebRequest request = WebRequest.Create(source);
WebResponse response = request.GetResponse();
Image image = Image.FromStream(response.GetResponseStream());

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM