// assumes 24 bits per pixel RGB public static unsafe ColorF GetPixel(this BitmapData data, long x, long y) { byte *p = data.GetRGBPointer(x, y); return(ColorF.From(Color.FromArgb(p[2], p[1], p[0]))); }