示例#1
0
        public virtual int WriteThumbnail(
            ID2D1Image pImage,
            IWICBitmapEncoder pEncoder,
            ref WICImageParameters pImageParameters
            )
        {
            var fp = GetFunctionPointer(5);

            if (m_WriteThumbnailFunc == null)
            {
                m_WriteThumbnailFunc = (WriteThumbnailFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(WriteThumbnailFunc));
            }

            return(m_WriteThumbnailFunc(m_ptr, pImage != null ? pImage.Ptr : IntPtr.Zero, pEncoder != null ? pEncoder.Ptr : IntPtr.Zero, ref pImageParameters));
        }
示例#2
0
        public virtual int WriteFrame(
            ID2D1Image pImage,
            IWICBitmapFrameEncode pFrameEncode,
            ref WICImageParameters pImageParameters
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_WriteFrameFunc == null)
            {
                m_WriteFrameFunc = (WriteFrameFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(WriteFrameFunc));
            }

            return(m_WriteFrameFunc(m_ptr, pImage != null ? pImage.Ptr : IntPtr.Zero, pFrameEncode != null ? pFrameEncode.Ptr : IntPtr.Zero, ref pImageParameters));
        }