示例#1
0
        public virtual int GetCurrentParameterSet(
            out IPropertyBag2 ppCurrentParameterSet
            )
        {
            var fp = GetFunctionPointer(13);

            if (m_GetCurrentParameterSetFunc == null)
            {
                m_GetCurrentParameterSetFunc = (GetCurrentParameterSetFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetCurrentParameterSetFunc));
            }
            ppCurrentParameterSet = new IPropertyBag2();
            return(m_GetCurrentParameterSetFunc(m_ptr, out ppCurrentParameterSet.PtrForNew));
        }
        public virtual int Initialize(
            IPropertyBag2 pIEncoderOptions
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_InitializeFunc == null)
            {
                m_InitializeFunc = (InitializeFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(InitializeFunc));
            }

            return(m_InitializeFunc(m_ptr, pIEncoderOptions != null ? pIEncoderOptions.Ptr : IntPtr.Zero));
        }
示例#3
0
        public virtual int CreateNewFrame(
            out IWICBitmapFrameEncode ppIFrameEncode,
            out IPropertyBag2 ppIEncoderOptions
            )
        {
            var fp = GetFunctionPointer(10);

            if (m_CreateNewFrameFunc == null)
            {
                m_CreateNewFrameFunc = (CreateNewFrameFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateNewFrameFunc));
            }
            ppIFrameEncode = new IWICBitmapFrameEncode(); ppIEncoderOptions = new IPropertyBag2();
            return(m_CreateNewFrameFunc(m_ptr, out ppIFrameEncode.PtrForNew, out ppIEncoderOptions.PtrForNew));
        }