Ok, with paintpicture and bltbit n' such, with the raster operation codes, what the heck does it mean by "...by using Xor (Or, And, etc.)? Example? I know what Xor, Or, and And all mean, just how are they all used? I never really knew the syntax.
Printable View
Ok, with paintpicture and bltbit n' such, with the raster operation codes, what the heck does it mean by "...by using Xor (Or, And, etc.)? Example? I know what Xor, Or, and And all mean, just how are they all used? I never really knew the syntax.
Just use them like this:
- OrValue = Value1 Or Value2 Or Value3
- XorValue = Value1 Xor Value2 Xor Value3
- AndValue = Value1 And Value2 And Value3
And - Masks the Bits of a Value
Or - Combines the Bits of Values
Xor - Inverts the Bits of a Value
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]