add operator == and != in agg::rgba8

This commit is contained in:
Prokhorov Kirill
2025-05-27 02:04:54 +03:00
parent fc2aca59aa
commit 77f363f737

View File

@ -416,6 +416,16 @@ namespace agg
{
return self_type(rgba::from_wavelength(wl, gamma));
}
bool operator==(const self_type& other)
{
return a == other.a && r == other.r && g == other.g && b == other.b;
}
bool operator!=(const self_type& other)
{
return !operator==(other);
}
};