private unsafe Color GetColorFromPoint(PointD point) { var pixels = GetPixelsFromPoint(point); fixed(ColorBgra *ptr = pixels) { var color = ColorBgra.BlendPremultiplied(ptr, pixels.Length); return(color.ToStraightAlpha().ToCairoColor()); } }