예제 #1
0
        public virtual int GetSubProperties(
            uint index,
            out ID2D1Properties subProperties
            )
        {
            var fp = GetFunctionPointer(13);

            if (m_GetSubPropertiesFunc == null)
            {
                m_GetSubPropertiesFunc = (GetSubPropertiesFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetSubPropertiesFunc));
            }
            subProperties = new ID2D1Properties();
            return(m_GetSubPropertiesFunc(m_ptr, index, out subProperties.PtrForNew));
        }
예제 #2
0
        public virtual int GetEffectProperties(
            ref Guid effectId,
            out ID2D1Properties properties
            )
        {
            var fp = GetFunctionPointer(26);

            if (m_GetEffectPropertiesFunc == null)
            {
                m_GetEffectPropertiesFunc = (GetEffectPropertiesFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetEffectPropertiesFunc));
            }
            properties = new ID2D1Properties();
            return(m_GetEffectPropertiesFunc(m_ptr, ref effectId, out properties.PtrForNew));
        }