How do you invert colors? My guess to just subtract it from vbWhite, but that would mean inverted gray is gray, so that can't be right.
Anyone know?
Printable View
How do you invert colors? My guess to just subtract it from vbWhite, but that would mean inverted gray is gray, so that can't be right.
Anyone know?
Wild guess....Have you tried using Xor?
Maybe something like,
NewColor = 255 Xor TheColor
or
NewColor = vbWhite Xor TheColor
?
That's the solution I proposed in the OP: subtract it from vbWhite. Thanks much for the link confirming this is how to do it.Quote:
Originally Posted by RhinoBull
Looks like we both guessed correctly, as doing an Xor like that is functionally equivalent to subtracting the color from vbWhite, and RhinoBull's link confirms that subtracting the color from vbWhite is indeed how you invert a color.Quote:
Originally Posted by Edgemeal
I like the Xor method better, though, because it's chock full of computery goodness.
:lol: I'm not sure what that really means, but it sounds good!:bigyello:Quote:
because it's chock full of computery goodness.