Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Unrevised from 9.0 to 10.0.
9.0 version

invert-box

Arguments: stream box

Inverts the pixels on stream that lie inside box. stream should be a graphical-stream. box should be a box object, as created with make-box. To use individual coordinates rather than making a box, see invert-box-x-y.

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-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 9.0 page.
Created 2015.5.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Unrevised from 9.0 to 10.0.
9.0 version