uROP2

Constant that specifies the binary raster operation (ROP2) code for one or more objects. ROP2 codes specify how pen or brush colors are to be combined with the colors in the image. Possible ROP2 code values are:

Value

Meaning

ANNROP2_COPY

[0x0000] Draw the object using the object's color.

ANNROP2_AND

[0x0001] Draw the object, performing an AND operation between the object's color and the background color. This creates a highlight effect. White objects become transparent.

ANNROP2_XOR

[0x0002] Draw the object, performing an XOR operation between the object's color and the background color. This creates an inverted effect. Black objects become transparent.

The default value is ANNROP2_COPY.