Return Value

Constant that specifies the 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

ANN_ROP2_COPY

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

ANN_ROP2_AND

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

ANN_ROP2_XOR

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