internal static extern void cairo_device_destroy(IntPtr device);
public void Dispose() { if (handle != IntPtr.Zero) { NativeMethods.cairo_device_destroy(handle); } handle = IntPtr.Zero; GC.SuppressFinalize(this); }