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

flip-monochrome-bytes

Arguments: texture

Replaces the texture-array of texture with a new array that reverses the order of the bits within each byte. This function is sometimes needed due to the fact that the Operating System expects the bits in a monochrome bitmap array to be in the reverse order of what they are in an Allegro bit array.

If a texture is created by calling load-pixmap, then flip-monochrome-bytes is called internally as needed, and so the application does not need to do so. But if a monochrome (1-bit-per-pixel) texture is defined as a static bit array, then the application will need to explicitly call flip-monochrome-bytes on the texture once at some point before copying it to a window.


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