Synced
GlyphBitmap.Constructor
Section titled “GlyphBitmap.Constructor”
- Creates a validated immutable glyph bitmap.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Text
Scope: Runtime
Declaration
Section titled “Declaration”public InnoEngine.Text.GlyphBitmap.GlyphBitmap(int width, int height, int bearingX, int bearingY, float advanceX, System.ReadOnlySpan<byte> pixels)Parameters
Section titled “Parameters”Parameter width: The bitmap width in pixels.
Parameter height: The bitmap height in pixels.
Parameter bearingX: The horizontal bearing in pixels.
Parameter bearingY: The vertical bearing in pixels.
Parameter advanceX: The horizontal glyph advance.
Parameter pixels: Tightly packed row-major 8-bit coverage.