Changed: Added isGray() method to CGRBA

This commit is contained in:
kervala 2016-01-01 16:00:17 +01:00
parent 14517116a4
commit a0adf063da

View file

@ -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.
*/ */