Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.1
This page is new in 8.1.

invert-box-x-y

Arguments: stream left top right bottom

Inverts the pixels on stream that lie in a rectangular area from an upper-left corner at (left, top) to a lower-right corner at (right, bottom). stream should be a graphical-stream. The other arguments should be integers. To use a box object rather than individual coordinates, see invert-box.

A pixel is inverted by reversing each bit in its value. If the stream is using true color, then inverting red produces cyan, for example, by turning off all of the red bits and turning on all of the green and blue bits. If the stream is using a palette instead, then the inverted color would be whatever color is found in the palette at the index that is produced by reversing the bits of the pixel's current palette index.


Copyright (c) 1998-2009, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 8.1. This page is new in the 8.1 release.
Created 2007.4.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.1
This page is new in 8.1.