Cairo.NativeMethods.cairo_destroy C# (CSharp) Метод

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

private cairo_destroy ( IntPtr cr ) : void
cr System.IntPtr
Результат void
        internal static extern void cairo_destroy(IntPtr cr);

Usage Example

Пример #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;
        }
NativeMethods