using System.Diagnostics;
using System.Collections.Generic;
private static List<Color> cL = new List<Color>();
public static void Main(string[] args)
using (WebClient c = new WebClient())
using (Bitmap b = new Bitmap(Image.FromFile(filename)))
for (int x = 0; x < b.Width; x++)
for (int y = 0; y < b.Height; y++)
cL.Add(b.GetPixel(x, y));
class IMAGE_PROCESSER : IDisposable
public Image LoadImage(string url)
WebClient client = new WebClient();
client.OpenReadCompleted += (s, e) =>
byte[] imageBytes = new byte[e.Result.Length];
e.Result.Read(imageBytes, 0, imageBytes.Length);
var image = new BitmapImage();
image.SetSource(e.Result);
client.OpenReadAsync(new Uri(article.ImageURL));