Aaron_Hunt
(Aaron Hunt)
1
I want to invert a color, and I’m making some dumb mistake. Can anyone tell me why this doesn’t work?
// start with some color
dim v as variant = g.ForeColor
// invert it
v = Bitwise.OnesComplement( v )
g.ForeColor = v.ColorValue
// and it doesn't work
DaveS
(DaveS)
3
seems to work just fine for me… but remember that it also inverts the ALPHA value… which might make your result transparent.
Aaron_Hunt
(Aaron Hunt)
4
Thanks Dave, that was the problem 