mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Changed: Added isGray() method to CGRBA
This commit is contained in:
parent
1eaa8688ba
commit
b71fad84c6
1 changed files with 8 additions and 0 deletions
|
@ -146,6 +146,14 @@ public:
|
||||||
*/
|
*/
|
||||||
uint8 toGray() const;
|
uint8 toGray() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Color is gray
|
||||||
|
*/
|
||||||
|
bool isGray() const
|
||||||
|
{
|
||||||
|
return R == G && G == B;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a 16 bits 565 pixel.
|
* Get a 16 bits 565 pixel.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue