コード例 #1
0
        public virtual int IsBufferPrecisionSupported(
            D2D1_BUFFER_PRECISION bufferPrecision
            )
        {
            var fp = GetFunctionPointer(69);

            if (m_IsBufferPrecisionSupportedFunc == null)
            {
                m_IsBufferPrecisionSupportedFunc = (IsBufferPrecisionSupportedFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(IsBufferPrecisionSupportedFunc));
            }

            return(m_IsBufferPrecisionSupportedFunc(m_ptr, bufferPrecision));
        }
コード例 #2
0
        public virtual int SetOutputBuffer(
            D2D1_BUFFER_PRECISION bufferPrecision,
            D2D1_CHANNEL_DEPTH channelDepth
            )
        {
            var fp = GetFunctionPointer(4);

            if (m_SetOutputBufferFunc == null)
            {
                m_SetOutputBufferFunc = (SetOutputBufferFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetOutputBufferFunc));
            }

            return(m_SetOutputBufferFunc(m_ptr, bufferPrecision, channelDepth));
        }
コード例 #3
0
        public virtual int CreateGradientStopCollection(
            ref D2D1_GRADIENT_STOP straightAlphaGradientStops,
            uint straightAlphaGradientStopsCount,
            D2D1_COLOR_SPACE preInterpolationSpace,
            D2D1_COLOR_SPACE postInterpolationSpace,
            D2D1_BUFFER_PRECISION bufferPrecision,
            D2D1_EXTEND_MODE extendMode,
            D2D1_COLOR_INTERPOLATION_MODE colorInterpolationMode,
            out ID2D1GradientStopCollection1 gradientStopCollection1
            )
        {
            var fp = GetFunctionPointer(64);

            if (m_CreateGradientStopCollectionFunc == null)
            {
                m_CreateGradientStopCollectionFunc = (CreateGradientStopCollectionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateGradientStopCollectionFunc));
            }
            gradientStopCollection1 = new ID2D1GradientStopCollection1();
            return(m_CreateGradientStopCollectionFunc(m_ptr, ref straightAlphaGradientStops, straightAlphaGradientStopsCount, preInterpolationSpace, postInterpolationSpace, bufferPrecision, extendMode, colorInterpolationMode, out gradientStopCollection1.PtrForNew));
        }
コード例 #4
0
 public int SetOutputBuffer(D2D1_BUFFER_PRECISION bufferPrecision, D2D1_CHANNEL_DEPTH channelDepth)
 {
     return(((delegate * unmanaged <ID2D1ComputeInfo *, D2D1_BUFFER_PRECISION, D2D1_CHANNEL_DEPTH, int>)(lpVtbl[4]))((ID2D1ComputeInfo *)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth));
 }
コード例 #5
0
 public HRESULT CreateLookupTable3D(D2D1_BUFFER_PRECISION precision, [NativeTypeName("const UINT32 *")] uint *extents, [NativeTypeName("const BYTE *")] byte *data, [NativeTypeName("UINT32")] uint dataCount, [NativeTypeName("const UINT32 *")] uint *strides, ID2D1LookupTable3D **lookupTable)
 {
     return(((delegate * unmanaged <ID2D1EffectContext2 *, D2D1_BUFFER_PRECISION, uint *, byte *, uint, uint *, ID2D1LookupTable3D **, int>)(lpVtbl[24]))((ID2D1EffectContext2 *)Unsafe.AsPointer(ref this), precision, extents, data, dataCount, strides, lookupTable));
 }
コード例 #6
0
 public BOOL IsBufferPrecisionSupported(D2D1_BUFFER_PRECISION bufferPrecision)
 {
     return(((delegate * unmanaged <ID2D1EffectContext2 *, D2D1_BUFFER_PRECISION, int>)(lpVtbl[23]))((ID2D1EffectContext2 *)Unsafe.AsPointer(ref this), bufferPrecision));
 }
コード例 #7
0
 public int IsBufferPrecisionSupported(D2D1_BUFFER_PRECISION bufferPrecision)
 {
     return(((delegate * stdcall <ID2D1EffectContext *, D2D1_BUFFER_PRECISION, int>)(lpVtbl[23]))((ID2D1EffectContext *)Unsafe.AsPointer(ref this), bufferPrecision));
 }
コード例 #8
0
 public D2D1_RENDERING_CONTROLS(D2D1_BUFFER_PRECISION bufferPrecision, [NativeTypeName("D2D1_SIZE_U")] D2D_SIZE_U tileSize)
 {
     this = RenderingControls(bufferPrecision, tileSize);
 }
コード例 #9
0
 public HRESULT SetOutputBuffer(D2D1_BUFFER_PRECISION bufferPrecision, D2D1_CHANNEL_DEPTH channelDepth)
 {
     return(((delegate * unmanaged <ID2D1BorderTransform *, D2D1_BUFFER_PRECISION, D2D1_CHANNEL_DEPTH, int>)(lpVtbl[4]))((ID2D1BorderTransform *)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth));
 }
コード例 #10
0
 public int SetOutputBuffer(D2D1_BUFFER_PRECISION bufferPrecision, D2D1_CHANNEL_DEPTH channelDepth)
 {
     return(((delegate * stdcall <ID2D1ConcreteTransform *, D2D1_BUFFER_PRECISION, D2D1_CHANNEL_DEPTH, int>)(lpVtbl[4]))((ID2D1ConcreteTransform *)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth));
 }