public static XRenderPictFormat XRenderFindVisualFormat(IntPtr x11display, IntPtr x11visual) { XRenderPictFormat rpf = new XRenderPictFormat(); rpf.id = IntPtr.Zero; try { IntPtr pRpf = _XRenderFindVisualFormat(x11display, x11visual); if (pRpf != IntPtr.Zero) { rpf = (XRenderPictFormat)Marshal.PtrToStructure(pRpf, typeof(XRenderPictFormat)); } // The 'pRpf' must not be free. } finally {; } return(rpf); }
extern public static IntPtr XRenderCreatePicture(IntPtr x11display, IntPtr x11drawable, ref XRenderPictFormat xRenderPictFormat, XRenderCreatePictureValueMask valueMask, ref XRenderPictureAttributes xRenderPictureAttributes);