Drawing Monochrome Pointers

A monochrome bitmap consists of two parts: the first defines the AND mask for the pointer; the second defines the XOR mask. Together these masks provide two bits of information for each pixel of the pointer image. The following table describes the result that is displayed for the indicated values in the AND and XOR masks.

AND mask value XOR mask value Result displayed

0

0

Pixel is black

0

1

Pixel is white

1

0

Pixel is unchanged (transparent)

1

1

Pixel color is inverted

This bitmap definition and usage supplies a black-and-white image, while providing support for transparency and inversion of the pixels that make up the pointer.