public virtual int GetAlphaTextureBounds(
            DWRITE_TEXTURE_TYPE textureType,
            out tagRECT textureBounds
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_GetAlphaTextureBoundsFunc == null)
            {
                m_GetAlphaTextureBoundsFunc = (GetAlphaTextureBoundsFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetAlphaTextureBoundsFunc));
            }

            return(m_GetAlphaTextureBoundsFunc(m_ptr, textureType, out textureBounds));
        }
        public virtual int CreateAlphaTexture(
            DWRITE_TEXTURE_TYPE textureType,
            ref tagRECT textureBounds,
            out byte alphaValues,
            uint bufferSize
            )
        {
            var fp = GetFunctionPointer(4);

            if (m_CreateAlphaTextureFunc == null)
            {
                m_CreateAlphaTextureFunc = (CreateAlphaTextureFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateAlphaTextureFunc));
            }

            return(m_CreateAlphaTextureFunc(m_ptr, textureType, ref textureBounds, out alphaValues, bufferSize));
        }
Beispiel #3
0
 public int CreateAlphaTexture(DWRITE_TEXTURE_TYPE textureType, [NativeTypeName("const RECT *")] RECT *textureBounds, [NativeTypeName("BYTE *")] byte *alphaValues, [NativeTypeName("UINT32")] uint bufferSize)
 {
     return(((delegate * unmanaged <IDWriteGlyphRunAnalysis *, DWRITE_TEXTURE_TYPE, RECT *, byte *, uint, int>)(lpVtbl[4]))((IDWriteGlyphRunAnalysis *)Unsafe.AsPointer(ref this), textureType, textureBounds, alphaValues, bufferSize));
 }
Beispiel #4
0
 public int GetAlphaTextureBounds(DWRITE_TEXTURE_TYPE textureType, RECT *textureBounds)
 {
     return(((delegate * unmanaged <IDWriteGlyphRunAnalysis *, DWRITE_TEXTURE_TYPE, RECT *, int>)(lpVtbl[3]))((IDWriteGlyphRunAnalysis *)Unsafe.AsPointer(ref this), textureType, textureBounds));
 }