// on some systems (Unixware 7.x) index is defined as a macro in the headers
// which breaks the compilation below
#undef index
// on some systems (Unixware 7.x) index is defined as a macro in the headers
// which breaks the compilation below
#undef index
// note that index must be multiplied by 3 when using it with RGB array
long XYToIndex(int x, int y) const;
// note that index must be multiplied by 3 when using it with RGB array
long XYToIndex(int x, int y) const;