Results 1 to 2 of 2

Thread: Never really knew this...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    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.

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    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]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width