Color::ModulateFactorCh

Color::ModulateFactorCh
static inline UByte ModulateFactorCh(unsigned c1, UByte factor);
Description

ModulateFactorCh multiplies a color channel with the passed factor (c1 * f). For 8 bit channels, the actual equation used is: min(c1*(f+1), 255).

Parameters
Parameters 
Description 
unsigned c1 
The color channel that is multiplied with the factor to form the new value (return value). 
UByte factor 
The factor that is multiplied with the channel to form the new value (return value). 
Return Value

An UByte value formed from the product of the channel and factor (c1 * f).

See Also