nw::font::CharWriter::SetColorMapping Member Function

Syntax

void SetColorMapping(
     ut::Color8 min,
     ut::Color8 max
);

Arguments

Name Description
in min Value after a conversion of 0 for each component.
in max Value after a conversion of 255 for each component.

Return Values

None.

Description

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.

See Also

nw::font::CharWriter::ResetColorMapping
nw::font::CharWriter::GetColorMappingMin
nw::font::CharWriter::GetColorMappingMax

Revision History

2009/11/09
Initial version.

CONFIDENTIAL