nw::font::CharWriter::SetColorMapping Member Function
void SetColorMapping(
ut::Color8 min,
ut::Color8 max
);
| Name | Description | |
|---|---|---|
| in | min | Value after a conversion of 0 for each component. |
| in | max | Value after a conversion of 255 for each component. |
Sets the linear conversion for glyph colors used while drawing characters.
First linear transformation is performed on each R, G, B and A component of the color that the glyph has and then the character is drawn. Specifically, drawing uses the color yielded for each component by the following formula:
color = glyph * ( max - min ) / 255 + min
Note: glyph is the color for each pixel of the glyph.
This setting is valid after the nw::font::CharWriter::SetupGX function is called.
nw::font::CharWriter::ResetColorMapping
nw::font::CharWriter::GetColorMappingMin
nw::font::CharWriter::GetColorMappingMax
CONFIDENTIAL