Discussion and sample code

Negating the pixels in an image is a good way to illustrate how to process individual pixels.

The negation algorithm is very simple.

Pixel negation is much more than simply an exercise.

Many computer programs use pixel negation to indicate that an image has been selected.

The negation process is computationally cheap and totally reversible.