Vixen
02b45cc4
csharp
public readonly record struct CoverageBitmap

A glyph's coverage, one float per pixel in [0, 1], row 0 at the top.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (5)

  • public int Width

    How many pixels across.

  • public int Height

    How many pixels down.

  • public float[] Coverage

    Row-major, Width * Height long.

  • public float this[int x, int y]

    One pixel's coverage.

  • public float Area

    The total covered area, in pixels.

Methods (1)

  • public CoverageBitmap(int Width, int Height, float[] Coverage)

    A glyph's coverage, one float per pixel in [0, 1], row 0 at the top.

Used by (4)

  • DistanceFieldVixen.Ui.Text
  • DistanceFieldTestsVixen.Ui.Text.Tests
  • GlyphRasterizerVixen.Ui.Text
  • RasterizerTestsVixen.Ui.Text.Tests