internal static extern void cairo_rectangle(IntPtr cr, double x, double y, double width, double height);
public void ClipExtendRectangle() { double x1, y1, x2, y2; NativeMethods.cairo_clip_extents(handle, out x1, out y1, out x2, out y2); NativeMethods.cairo_rectangle(handle, x1, y1, x2 - x1, y2 - y1); }