Struct GlyphGammaTable

Support for font glyph gamma correction.

struct GlyphGammaTable(int maxv)
  
if (maxv <= 256);

Table to correct gamma and translate to output range 0..255. maxv is 65 for Win32 fonts and 256 for FreeType.

Constructors

NameDescription
this ()
this (gammaValue)

Fields

TypeNameDescription
double
_gamma
ubyte[maxv]
_map

Properties

TypeNameDescription
double
gamma[get]

Methods

NameDescription
correct (src) Correct byte value from source range to 0..255 applying gamma