/ C#

[C#] 웹 이미지를 C# 에서 불러오는 함수

하나를하더라도최선을 2020-08-29 16:22:13 10,308 0 0
public Bitmap WebImageView(string URL)
 
{
 
    try
 
    {
 
        WebClient Downloader = new WebClient();
 
        Stream ImageStream = Downloader.OpenRead(URL);
 
        Bitmap DownloadImage = Bitmap.FromStream(ImageStream) as Bitmap;
 
        return DownloadImage;
 
    }
 
    catch (Exception)
 
    {
 
        return null;
 
    }
 
}
 

댓글 0개

첫 번째 댓글을 작성해보세요!