2.2.1.2.5 ROP2

The ROP2 enumeration describes the binary raster operation codes that define how the graphics device interface (GDI) combines the bits from the selected pen with the bits in the destination bitmap.

 typedef  enum
 {
   R2_BLACK = 0x00000001,
   R2_NOTMERGEPEN = 0x00000002,
   R2_MASKNOTPEN = 0x00000003,
   R2_NOTCOPYPEN = 0x00000004,
   R2_MASKPENNOT = 0x00000005,
   R2_NOT = 0x00000006,
   R2_XORPEN = 0x00000007,
   R2_NOTMASKPEN = 0x00000008,
   R2_MASKPEN = 0x00000009,
   R2_NOTXORPEN = 0x0000000A,
   R2_NOP = 0x0000000B,
   R2_MERGENOTPEN = 0x0000000C,
   R2_COPYPEN = 0x0000000D,
   R2_MERGEPENNOT = 0x0000000E,
   R2_MERGEPEN = 0x0000000F,
   R2_WHITE = 0x00000010
 } ROP2;

R2_BLACK:  The pixel is always drawn as black.

R2_NOTMERGEPEN:  The pixel is the inverse of the R2_MERGEPEN color.

R2_MASKNOTPEN:  The pixel is a combination of the colors that are common to both the screen and the inverse of the pen.

R2_NOTCOPYPEN:  The pixel is the inverse of the pen color.

R2_MASKPENNOT:  The pixel is a combination of the colors that are common to both the pen and the inverse of the screen.

R2_NOT:  The pixel is the inverse of the screen color.

R2_XORPEN:  The pixel is a combination of the colors in the pen and in the screen, but not in both.

R2_NOTMASKPEN:  The pixel is the inverse of the R2_MASKPEN color.

R2_MASKPEN:  The pixel is a combination of the colors that are common to both the pen and the screen.

R2_NOTXORPEN:  The pixel is the inverse of the R2_XORPEN color.

R2_NOP:  The pixel remains unchanged.

R2_MERGENOTPEN:  The pixel is a combination of the screen color and the inverse of the pen color.

R2_COPYPEN:  The pixel always has the color of the pen.

R2_MERGEPENNOT:  The pixel is a combination of the pen color and the inverse of the screen color.

R2_MERGEPEN:  The pixel is a combination of the pen color and the screen color.

R2_WHITE:  The pixel is always drawn as white.