Color::InverseCh

Color::InverseCh
static inline UByte InverseCh(unsigned c);
Description

InverseCh returns a new value formed by subtracting the passed channel number from 1.0 (or 255 if 8 bit). For Color objects, the actual equation used for the 8 bit channel value is: 255 - v.

Parameters
Parameters 
Description 
A value that is used to form the new inverted channel (return value). 
Return Value

An UByte formed from the inverse of the passed value.

See Also