从URL加载图像插入一个图片 [英] Load an image from a url into a PictureBox
本文介绍了从URL加载图像插入一个图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将图像加载到一个图片框
。这是我要加载的图像:<一href="http://www.gravatar.com/avatar/6810d91caff032b202c50701dd3af745?d=identicon&r=PG">http://www.gravatar.com/avatar/6810d91caff032b202c50701dd3af745?d=identicon&r=PG
I want to load an image into a PictureBox
. This is the image I want to load: http://www.gravatar.com/avatar/6810d91caff032b202c50701dd3af745?d=identicon&r=PG
我如何做到这一点?
推荐答案
内置的 PictureBox.Load(串的URL)方法的设置ImageLocation到指定的URL并显示图像表示。 (由于.NetFramework 2)
The inbuilt PictureBox.Load(string URL) Method "sets the ImageLocation to the specified URL and displays the image indicated." (Since .NetFramework 2)
这篇关于从URL加载图像插入一个图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文