skip to Main Content
(31) 98739-9637

Como extrai imagens de um site

using HtmlAgilityPack; public static List GetImagesFromUrl(string url) { var web = new HtmlWeb(); var doc = web.Load(url); var images = new List(); foreach (var img in doc.DocumentNode.Descendants("img")) { var src = img.Attributes["src"]?.Value; if (!string.IsNullOrEmpty(src)) { images.Add(src); } } return images;…

Saiba mais

Recortar imagem com c#

Description Downsizing a large image can cause oddly sampled pixels in the top rows of pixels (I only noticed it in the top rows at least). I tested multiple samplers. All of them displayed similar results. Steps to Reproduce using…

Saiba mais
Back To Top