Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 1.76 KB

drawing-monochrome-pointers.md

File metadata and controls

69 lines (51 loc) · 1.76 KB
title description keywords ms.date
Drawing Monochrome Pointers
Drawing Monochrome Pointers
drawing pointers WDK Windows 2000 display
display drivers WDK Windows 2000 , pointers
pointers WDK Windows 2000 display
monochrome pointers WDK Windows 2000 display
black-and-white pointers WDK Windows 2000 display
04/20/2017

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.