TernaryRasterOperations (Enums)
Last changed: -67.168.202.202

.
Summary
Used by BitBlt to define how the color data for the source rectangle is to be combined with the color data for the destination rectangle to achieve the final color.

C# Definition:

public enum TernaryRasterOperations : uint
{
    SRCCOPY     = 0x00CC0020, /* dest = source*/
    SRCPAINT    = 0x00EE0086, /* dest = source OR dest*/
    SRCAND      = 0x008800C6, /* dest = source AND dest*/
    SRCINVERT   = 0x00660046, /* dest = source XOR dest*/
    SRCERASE    = 0x00440328, /* dest = source AND (NOT dest )*/
    NOTSRCCOPY  = 0x00330008, /* dest = (NOT source)*/
    NOTSRCERASE = 0x001100A6, /* dest = (NOT src) AND (NOT dest) */
    MERGECOPY   = 0x00C000CA, /* dest = (source AND pattern)*/
    MERGEPAINT  = 0x00BB0226, /* dest = (NOT source) OR dest*/
    PATCOPY     = 0x00F00021, /* dest = pattern*/
    PATPAINT    = 0x00FB0A09, /* dest = DPSnoo*/
    PATINVERT   = 0x005A0049, /* dest = pattern XOR dest*/
    DSTINVERT   = 0x00550009, /* dest = (NOT dest)*/
    BLACKNESS   = 0x00000042, /* dest = BLACK*/
    WHITENESS   = 0x00FF0062, /* dest = WHITE*/
};

VB Definition:

    Enum TernaryRasterOperations As UInteger
    SRCCOPY = 13369376     'dest = source
    SRCPAINT = 15597702    'dest = source OR dest
    SRCAND = 8913094       'dest = source AND dest
    SRCINVERT = 6684742    'dest = source XOR dest
    SRCERASE = 4457256     'dest = source AND (NOT dest )
    NOTSRCCOPY = 3342344   'dest = (NOT source)
    NOTSRCERASE = 1114278  'dest = (NOT src) AND (NOT dest)
    MERGECOPY = 12583114   'dest = (source AND pattern)
    MERGEPAINT = 12255782  'dest = (NOT source) OR dest
    PATCOPY = 15728673     'dest = pattern
    PATPAINT = 16452105    'dest = DPSnoo
    PATINVERT = 5898313    'dest = pattern XOR dest
    DSTINVERT = 5570569    'dest = (NOT dest)
    BLACKNESS = 66     'dest = BLACK
    WHITENESS = 16711778   'dest = WHITE
    End Enum

Notes:

None.

Documentation