[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.GlyphRunAnalysis

Class GlyphRunAnalysis

Namespace
GrapeCity.Documents.DX.DirectWrite
Assembly
GcDocs.DX.Windows.dll

IDWriteGlyphRunAnalysis

[Guid("7d97dbf7-e085-42d4-81e3-6a883bded118")]
public class GlyphRunAnalysis : ComObject, IDisposable, IUnknown
Inheritance
object
GlyphRunAnalysis
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

GlyphRunAnalysis(IntPtr)

Initializes a new instance of the GlyphRunAnalysis class.

public GlyphRunAnalysis(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(Factory, GlyphRun, float, RenderingMode, MeasuringMode, float, float)

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)

Parameters

factory Factory

The factory.

glyphRun GlyphRun

A structure that contains the properties of the glyph run (font face, advances, and so on).

pixelsPerDip float

Number 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 RenderingMode

A value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline).

measuringMode MeasuringMode

Specifies the measuring mode to use with glyphs.

baselineOriginX float

The horizontal position (X-coordinate) of the baseline origin, in DIPs.

baselineOriginY float

Vertical position (Y-coordinate) of the baseline origin, in DIPs.

Returns

GlyphRunAnalysis

Remarks

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.

Create(Factory, GlyphRun, float, Matrix3x2?, RenderingMode, MeasuringMode, float, float)

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)

Parameters

factory Factory

The factory.

glyphRun GlyphRun

A structure that contains the properties of the glyph run (font face, advances, and so on).

pixelsPerDip float

Number 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 RenderingMode

A value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline).

measuringMode MeasuringMode

Specifies the measuring mode to use with glyphs.

baselineOriginX float

The horizontal position (X-coordinate) of the baseline origin, in DIPs.

baselineOriginY float

Vertical position (Y-coordinate) of the baseline origin, in DIPs.

Returns

GlyphRunAnalysis

Remarks

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.

CreateAlphaTexture(TextureType, RectL, byte[], int)

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)

Parameters

textureType TextureType
textureBounds RectL
alphaValues byte[]
bufferSize int

GetAlphaBlendParams(RenderingParams, out float, out float, out float)

HRESULT 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)

Parameters

renderingParams RenderingParams
blendGamma float
blendEnhancedContrast float
blendClearTypeLevel float

GetAlphaTextureBounds(TextureType)

HRESULT IDWriteGlyphRunAnalysis::GetAlphaTextureBounds([In] DWRITE_TEXTURE_TYPE textureType,[Out] RECT* textureBounds)

public RectL GetAlphaTextureBounds(TextureType textureType)

Parameters

textureType TextureType

Returns

RectL

Operators

explicit operator GlyphRunAnalysis(IntPtr)

Performs an explicit conversion from System.IntPtr to GlyphRunAnalysis.

public static explicit operator GlyphRunAnalysis(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

GlyphRunAnalysis