PDA

Click to See Complete Forum and Search --> : Never really knew this...


Phobic
Jan 27th, 2000, 09:58 AM
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.

Aaron Young
Jan 27th, 2000, 10:05 AM
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
aarony@redwingsoftware.com
ajyoung@pressenter.com