BitmapGlyphImage Class

The image a font gives for a glyph (sbix, CBDT, EBDT or bdat tables), decoded at the size of its strike, and where the font places it.

public sealed class BitmapGlyphImage : IDisposable

Remarks

The image belongs to the caller: dispose of it, or of this instance.

Implements

Properties

NameDescription
ImageGets the decoded image, at the size of its strike: one pixel of the image is one pixel of a text drawn at BitmapGlyphImage.PixelsPerEmX.
IsMaskGets a value indicating whether the font gives the coverage of the pixels only (a bitmap without colors): the image is then black, with the coverage as its opacity, and a text draws it with its own color.
LeftGets the distance from the origin of the glyph to the left of the image, in pixels of the image.
PixelsPerEmXGets the number of pixels of the image per em, horizontally: the size the strike is made for.
PixelsPerEmYGets the number of pixels of the image per em, vertically.
TopGets the distance from the baseline up to the top of the image, in pixels of the image.

Gets the decoded image, at the size of its strike: one pixel of the image is one pixel of a text drawn at BitmapGlyphImage.PixelsPerEmX.

public Image<Rgba32> Image { get; }

Property value

Image<Rgba32>

Gets a value indicating whether the font gives the coverage of the pixels only (a bitmap without colors): the image is then black, with the coverage as its opacity, and a text draws it with its own color.

public bool IsMask { get; }

Property value

bool

Gets the distance from the origin of the glyph to the left of the image, in pixels of the image.

public int Left { get; }

Property value

int

Gets the number of pixels of the image per em, horizontally: the size the strike is made for.

public int PixelsPerEmX { get; }

Property value

int

Gets the number of pixels of the image per em, vertically.

public int PixelsPerEmY { get; }

Property value

int

Gets the distance from the baseline up to the top of the image, in pixels of the image.

public int Top { get; }

Property value

int

Methods

NameDescription
Dispose()Disposes of the image.

Disposes of the image.

public void Dispose()