Constant | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## po-xor

A paint operation that merges the colors of new content that is being drawn with the current colors of the destination stream's pixels. It does this by doing an exclusive or on the bits of the pixel values. See paint-operation.

An exclusive or is particularly useful for drawing something temporarily and then erasing it in such a way that the original drawing remains undisturbed. This can be done by simply drawing the temporary content twice using `po-xor`, where the second draw does the non-destructive erasing. The rubber-banding functions such as get-line and get-shape-box use `po-xor` internally to erase the rubber-banding line.

The color that results with exclusive or drawing is rather arbitrary, but that is the trade-off for non-destructive erasure.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version