Ropecodes
The last parameter in bitblt is the ropecode. This tell you how you will
copy the picture. This makes bitblt a very good good animating function because
it makes the function very flexible.
You can copy the bitmap or you can invert the colors at the same time.
You can also paste together several bitmaps. There are many ways that you can use
bitblt and the purpose of this site is only to give you the basics of
the function so you can try it yourself.
Here are some ropecode constants:
Const SRCCOPY = &HCC0020 This will only copy the picture to the destination.
Const SRCINVERT = &H660046 This will copy the picture and invert the colors.
Const SRCPAINT = &HEE0086 This will Paint the picture on to the destination.
Const SRCAND = &H8800C6 This will glue a bitamps together with another. Used with masks.