public virtual void DrawGdiMetafile(
            ID2D1GdiMetafile gdiMetafile,
            ref System.Numerics.Vector2 targetOffset
            )
        {
            var fp = GetFunctionPointer(84);

            if (m_DrawGdiMetafileFunc == null)
            {
                m_DrawGdiMetafileFunc = (DrawGdiMetafileFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(DrawGdiMetafileFunc));
            }

            m_DrawGdiMetafileFunc(m_ptr, gdiMetafile != null ? gdiMetafile.Ptr : IntPtr.Zero, ref targetOffset);
        }
Beispiel #2
0
        public virtual int CreateGdiMetafile(
            IStream metafileStream,
            out ID2D1GdiMetafile metafile
            )
        {
            var fp = GetFunctionPointer(21);

            if (m_CreateGdiMetafileFunc == null)
            {
                m_CreateGdiMetafileFunc = (CreateGdiMetafileFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateGdiMetafileFunc));
            }
            metafile = new ID2D1GdiMetafile();
            return(m_CreateGdiMetafileFunc(m_ptr, metafileStream != null ? metafileStream.Ptr : IntPtr.Zero, out metafile.PtrForNew));
        }