XBitmap*() XBitmap*()
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
display Specifies a connection to an X Server; returned from
XOpenDisplay().
ReturnsXBitmapUnit() and XBitmapPad() return a number of bits. XBitmap‐
BitOrder() 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 indi‐
cate the server's bit order.
Each scanline must be padded to a multiple of bits returned by XBitmap‐
Pad().
The C language macros BitmapUnit(), BitmapBitOrder(), and BitmapPad()
are equivalent and slightly more efficient.
See AlsoXImageByteOrder(), XGetImage(), XPutImage().
Xlib - Macro Equivalents XBitmap*()