Merhaba arkadaşlar bu yazımda sizlere İnternette ki resmi istenen formata getirme ve image olarak gösterme işleminden bahsetmek istiyorum.

    String resim;
        public string get_image(string url)
        {
          
            // For speed of dev, I use a WebClient
            WebClient client = new WebClient();
            string html = client.DownloadString(url);

            // Load the Html into the agility pack
            HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
            doc.LoadHtml(html);

            // Now, using LINQ to get all Images
            List<HtmlNode> imageNodes = null;
            imageNodes = (from HtmlNode node in doc.DocumentNode.SelectNodes(“//img”)
                          where node.Name == “img”
                          && node.Attributes[“class”] != null
                          && node.Attributes[“class”].Value.StartsWith(“ProfileAvatar-image”)
                          select node).ToList();
            foreach (HtmlNode node in imageNodes)
            {
                resim= node.Attributes[“src”].Value;
            }
            return resim;
        }

 var request = WebRequest.Create(get_image( Form1.link));

            using (var response = request.GetResponse())
            using (var stream = response.GetResponseStream())
            {
                pictureBox1.Image = Bitmap.FromStream(stream);
            }