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()().
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().
Copyright O’Reilly & Assoc. —