[]
IDWriteGlyphRunAnalysis
[Guid("7d97dbf7-e085-42d4-81e3-6a883bded118")]
public class GlyphRunAnalysis : ComObject, IDisposable, IUnknown
Initializes a new instance of the GlyphRunAnalysis class.
public GlyphRunAnalysis(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
Creates a glyph run analysis object, which encapsulates information used to render a glyph run.
public static GlyphRunAnalysis Create(Factory factory, GlyphRun glyphRun, float pixelsPerDip, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY)
factory FactoryThe factory.
glyphRun GlyphRunA structure that contains the properties of the glyph run (font face, advances, and so on).
pixelsPerDip floatNumber of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI bitmap then pixelsPerDip is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 1.25.
renderingMode RenderingModeA value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline).
measuringMode MeasuringModeSpecifies the measuring mode to use with glyphs.
baselineOriginX floatThe horizontal position (X-coordinate) of the baseline origin, in DIPs.
baselineOriginY floatVertical position (Y-coordinate) of the baseline origin, in DIPs.
The glyph run analysis object contains the results of analyzing the glyph run, including the positions of all the glyphs and references to all of the rasterized glyphs in the font cache.
Creates a glyph run analysis object, which encapsulates information used to render a glyph run.
public static GlyphRunAnalysis Create(Factory factory, GlyphRun glyphRun, float pixelsPerDip, Matrix3x2? transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY)
factory FactoryThe factory.
glyphRun GlyphRunA structure that contains the properties of the glyph run (font face, advances, and so on).
pixelsPerDip floatNumber of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI bitmap then pixelsPerDip is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 1.25.
transform Matrix3x2?Optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified the emSize and pixelsPerDip.
renderingMode RenderingModeA value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline).
measuringMode MeasuringModeSpecifies the measuring mode to use with glyphs.
baselineOriginX floatThe horizontal position (X-coordinate) of the baseline origin, in DIPs.
baselineOriginY floatVertical position (Y-coordinate) of the baseline origin, in DIPs.
The glyph run analysis object contains the results of analyzing the glyph run, including the positions of all the glyphs and references to all of the rasterized glyphs in the font cache.
HRESULT IDWriteGlyphRunAnalysis::CreateAlphaTexture([In] DWRITE_TEXTURE_TYPE textureType,[In] const RECT* textureBounds,[Out, Buffer] unsigned char* alphaValues,[In] unsigned int bufferSize)
public void CreateAlphaTexture(TextureType textureType, RectL textureBounds, byte[] alphaValues, int bufferSize)
textureType TextureTypetextureBounds RectLalphaValues byte[]bufferSize intHRESULT IDWriteGlyphRunAnalysis::GetAlphaBlendParams([In] IDWriteRenderingParams* renderingParams,[Out] float* blendGamma,[Out] float* blendEnhancedContrast,[Out] float* blendClearTypeLevel)
public void GetAlphaBlendParams(RenderingParams renderingParams, out float blendGamma, out float blendEnhancedContrast, out float blendClearTypeLevel)
renderingParams RenderingParamsblendGamma floatblendEnhancedContrast floatblendClearTypeLevel floatHRESULT IDWriteGlyphRunAnalysis::GetAlphaTextureBounds([In] DWRITE_TEXTURE_TYPE textureType,[Out] RECT* textureBounds)
public RectL GetAlphaTextureBounds(TextureType textureType)
textureType TextureTypePerforms an explicit conversion from System.IntPtr to GlyphRunAnalysis.
public static explicit operator GlyphRunAnalysis(IntPtr nativePointer)
nativePointer System.IntPtr