cairo_destroy() приватный Метод

private cairo_destroy ( IntPtr cr ) : void
cr System.IntPtr
Результат void
Пример #1
0
        public void SetTarget(Surface target)
        {
            IntPtr newHandle = NativeMethods.cairo_create(target.Handle);

            if (newHandle == IntPtr.Zero)
            {
                throw new InvalidOperationException("Surface had an invalid handle.");
            }

            if (handle != IntPtr.Zero)
            {
                NativeMethods.cairo_destroy(handle);
            }

            handle = newHandle;
        }