/// <summary>
/// Checks if all of the pixels in the column (within the bounds of the rectangle) match the specified color.
/// </summary>
private static bool IsConstantColumn(ImageSurface surf, Cairo.Color color, Gdk.Rectangle rect, int x)
{
for (int y = rect.Top; y < rect.Bottom; ++y)
{
if (!color.Equals(surf.GetPixel(x, y)))
{
return(false);
}
}
return(true);
}