C
Christopher Ireland
Hi -
I'm trying to calculate the xor color of any given system color. I've tried
the following:
int xorColor = anyColor.ToArgb();
//xorColor = ~xorColor & 16777215;
//xorColor = -1 ^ xorColor;
But neither of these two calculations (which are the same anyway?) returns
correct xor colors for all permutations of anyColor. Can anybody please give
me a hand?
Many thanks.
Christopher Ireland.
I'm trying to calculate the xor color of any given system color. I've tried
the following:
int xorColor = anyColor.ToArgb();
//xorColor = ~xorColor & 16777215;
//xorColor = -1 ^ xorColor;
But neither of these two calculations (which are the same anyway?) returns
correct xor colors for all permutations of anyColor. Can anybody please give
me a hand?
Many thanks.
Christopher Ireland.