ImageByteOrder, BitmapBitOrder, BitmapPad, BitmapUnit, DisplayHeight, DisplayHeightMM, DisplayWidth, DisplayWidthMM, XListPixmapFormats, XPixmapFormatValues − image format functions and macros


XPixmapFormatValues *XListPixmapFormats(Display *display, int *count_return);

int ImageByteOrder(Display *display);

int BitmapBitOrder(Display *display);

int BitmapPad(Display *display);

int BitmapUnit(Display *display);

int DisplayHeight(Display *display, int screen_number);

int DisplayHeightMM(Display *display, int screen_number);

int DisplayWidth(Display *display, int screen_number);

int DisplayWidthMM(Display *display, int screen_number);



Specifies the connection to the X server.


Returns the number of pixmap formats that are supported by the display.


Specifies the appropriate screen number on the host server.


The XListPixmapFormats function returns an array of XPixmapFormatValues structures that describe the types of Z format images supported by the specified display. If insufficient memory is available, XListPixmapFormats returns NULL. To free the allocated storage for the XPixmapFormatValues structures, use XFree.

The ImageByteOrder macro specifies the required byte order for images for each scanline unit in XY format (bitmap) or for each pixel value in Z format.

The BitmapBitOrder macro returns LSBFirst or MSBFirst to indicate whether the leftmost bit in the bitmap as displayed on the screen is the least or most significant bit in the unit.

The BitmapPad macro returns the number of bits that each scanline must be padded.

The BitmapUnit macro returns the size of a bitmap’s scanline unit in bits.

The DisplayHeight macro returns the height of the specified screen in pixels.

The DisplayHeightMM macro returns the height of the specified screen in millimeters.

The DisplayWidth macro returns the width of the screen in pixels.

The DisplayWidthMM macro returns the width of the specified screen in millimeters.


The XPixmapFormatValues structure provides an interface to the pixmap format information that is returned at the time of a connection setup. It contains:
typedef struct {

int depth;

int bits_per_pixel;

int scanline_pad;

} XPixmapFormatValues;


AllPlanes(3), BlackPixelOfScreen(3), IsCursorKey(3), XFree(3)
Xlib − C Language X Interface

More Linux Commands

perlapio(1) - perl's IO abstraction interface. (Man Page)...
Perls source code, and extensions that want maximum portability, should use the above functions instead of those defined in ANSI C s stdio.h. The perl headers (

perl5122delta(1) - what is new for perl v5.12.2 (Man Page)
This document describes differences between the 5.12.1 release and the 5.12.2 release. If you are upgrading from an earlier major version, such as 5.10.1, first

lsetxattr(2) - set an extended attribute value (Man Page)...
lsetxattr.2 - Extended attributes are name:value pairs associated with inodes (files, directories, symbolic links, etc.). They are extensions to the normal attr

tset(1) - terminal initialization - Linux manual page.......
Tset initializes terminals. Tset first determines the type of terminal that you are using. This determination is done as follows, using the first terminal type

halt(8) - Halt, power-off or reboot the machine (Man Page)
halt.8 - halt, poweroff, reboot may be used to halt, power-off or reboot the machine. OPTIONS The following options are understood: --help Print a short help te

XdbeFreeVisualInfo(3) - frees information returned by XdbeGe
This function frees the list of XdbeScreenVisualInfo returned by the function XdbeGetVisualInfo(). SEE ALSO DBE, XdbeAllocateBackBufferName(), XdbeBeginIdiom(),

lsdiff(1) - show which files are modified by a patch........
List the files modified by a patch. You can use both unified and context format diffs with this program. OPTIONS -n, --line-number Display the line number that

intro.5 - intro(5) - Introduction to file formats - Linux manual page
Section 5 of the manual describes various file formats and protocols, and the corresponding C structures, if any. NOTES Authors and copyright conditions Look at

console(4) - console terminal and virtual consoles (ManPage)
A Linux system has up to 63 virtual consoles (character devices with major number 4 and minor number 1 to 63), usually called /dev/ttyn with 1 <= n <= 63. The c

cyr_df(8) - report Cyrus spool partition disk space usage...
Cyr_df examines the Cyrus spool partitions and reports on their disk space usage. Cyr_df reads its configuration options out of the imapd.conf(5) file unless sp

gitcore-tutorial(7) - A git core tutorial for developers....
This tutorial explains how to use the core Git commands to set up and work with a Git repository. If you just need to use Git as a revision control system you m

toc2cddb(1) - translates a TOC file of cdrdao(1) into a cddb
toc2cddb translates a TOC file of cdrdao(1) into a cddb file and prints it to stdout. OPTIONS -h Shows a short help message. -V Prints the version of toc2cddb.

We can't live, work or learn in freedom unless the software we use is free.