Color::AndCh

Color::AndCh
static inline UByte AndCh(unsigned c1, unsigned c2);
Description

AndCh combines two channels by taking the binary "and" of the values (c1 & c2). For 8 bit channels, the same equation is used.

Parameters
Parameters 
Description 
unsigned c1 
The first (the destination) of two channels that are combined to form the new value (return value). 
unsigned c2 
The second (the source) of two channels that are combined to form the new value (return value). 
Return Value

An UByte value formed from the binary and of the two channels (c1 & c2).

See Also