PeachDrawing.Text

PeachDrawing.Text.Outlines

EmbeddedBitmap Struct

One picture of a glyph from one strike of a font that draws its colour glyphs as bitmaps (CBDT/CBLC or sbix).

public readonly record struct EmbeddedBitmap : System.IEquatable<PeachDrawing.Text.Outlines.EmbeddedBitmap>

Implements System.IEquatable<EmbeddedBitmap>

Remarks

Two pictures are equal when their numbers are and their Data arrays are the same array; compare the bytes themselves to tell whether two pictures have the same image.

Constructors  
EmbeddedBitmap(byte[], int, int, int, double, double) One picture of a glyph from one strike of a font that draws its colour glyphs as bitmaps (CBDT/CBLC or sbix).
Properties  
BearingTop The distance from the baseline up to the top edge of the picture, in strike pixels.
BearingX The distance from the glyph origin to the left edge of the picture, in strike pixels.
Data The encoded image: PNG, or for sbix also JPEG.
Height The height of the picture in strike pixels.
Ppem The pixels per em of the strike the picture belongs to. The picture is drawn at fontSize / Ppem per pixel.
Width The width of the picture in strike pixels.