반응형
using (WebClient wc = new WebClient())
{
byte[] data = wc.DownloadData(imgUrl);
using (MemoryStream ms = new MemoryStream(data))
using (Image img = Image.FromStream(ms))
using (Graphics g = this.CreateGraphics())
{
g.DrawImage(img, 0, 0);
}
반응형