NAME
XBitmapBitOrder, XBitmapPad, XBitmapUnit — query the bitmap format of a display.
SYNOPSIS
int XBitmapUnit(display)
Display ∗display; int XBitmapBitOrder(display)
Display ∗display; int XBitmapPad(display)
Display ∗display;
ARGUMENTS
displaySpecifies a connection to an X Server; returned from XOpenDisplay()().
RETURNS
XBitmapUnit() and XBitmapPad() return a number of bits. XBitmapBitOrder() returns LSBFirst or MSBFirst.
DESCRIPTION
These functions are used in connection with manipulating image data.
XBitmapUnit() returns the size of a bitmap’s scanline unit in bits. The scanline is calculated in multiples of this value.
Within each bitmap unit, the left-most bit in the bitmap as displayed on the screen is either the least-significant or most-significant bit in the unit. XBitmapBitOrder() returns LSBFirst or MSBFirst to indicate the server’s bit order.
Each scanline must be padded to a multiple of bits returned by XBitmapPad().
The C language macros BitmapUnit(), BitmapBitOrder(), and BitmapPad() are equivalent and slightly more efficient.
SEE ALSO
XImageByteOrder(), XGetImage(), XPutImage().
Xlib Reference Manual