Example #1
0
        public virtual int get_FrameDescription(
            out IFrameDescription frameDescription
            )
        {
            var fp = GetFunctionPointer(5);

            if (m_get_FrameDescriptionFunc == null)
            {
                m_get_FrameDescriptionFunc = (get_FrameDescriptionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(get_FrameDescriptionFunc));
            }
            frameDescription = new IFrameDescription();
            return(m_get_FrameDescriptionFunc(m_ptr, out frameDescription.PtrForNew));
        }
Example #2
0
        public virtual int CreateFrameDescription(
            _ColorImageFormat format,
            out IFrameDescription frameDescription
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_CreateFrameDescriptionFunc == null)
            {
                m_CreateFrameDescriptionFunc = (CreateFrameDescriptionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateFrameDescriptionFunc));
            }
            frameDescription = new IFrameDescription();
            return(m_CreateFrameDescriptionFunc(m_ptr, format, out frameDescription.PtrForNew));
        }