Drawing Color Pointers

Defining the color pointer in the same way as the monochrome pointer (that is, as a bitmap that includes an AND portion and an XOR portion -- see Pointer Drawing and Drawing Monochrome Pointers) also supports transparency and inversion.

  • If the color bitmap is black (index 0) and the AND mask value is 1, then the result is transparency.

  • If the color bitmap is white and the AND mask value is 1, then the result is inversion.

  • If the device cannot display color, then a pointer can be drawn as black and white.

These conventions allow applications to use a single pointer definition for both color and monochrome displays.