# Blt Flags

    Const SRCAND = &H8800C6
    Const SRCCOPY = &HCC0020
    Const SRCERASE = &H440328
    Const SRCINVERT = &H660046
    Const SRCPAINT = &HEE0086

The Blt flags tell the Bltting functions what method to use when transfering a piece of an image from the source to the target device. Exactly one flag must be used -- they cannot be combined. The Ands, Ors, etc. are binary operations performed on a pixel-by-pixel basis with the colors in the source and target. The result is the color that appears.

SRCAND
  destination = image And destination
SRCCOPY
  destination = image
SRCERASE
  destination = image And (Not destination)
SRCINVERT
  destination = image Xor destination
SRCPAINT
  destination = image Or destination

Used by: BitBlt, StretchBlt
Back to the index.