NAME

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

SYNTAX

XPixmapFormatValues *XListPixmapFormats(Display *_d_i_s_p_l_a_y, int *_c_o_u_n_t___r_e_t_u_r_n); int ImageByteOrder(Display *_d_i_s_p_l_a_y); int BitmapBitOrder(Display *_d_i_s_p_l_a_y); int BitmapPad(Display *_d_i_s_p_l_a_y); int BitmapUnit(Display *_d_i_s_p_l_a_y); int DisplayHeight(Display *_d_i_s_p_l_a_y, int _s_c_r_e_e_n___n_u_m_b_e_r); int DisplayHeightMM(Display *_d_i_s_p_l_a_y, int _s_c_r_e_e_n___n_u_m_b_e_r); int DisplayWidth(Display *_d_i_s_p_l_a_y, int _s_c_r_e_e_n___n_u_m_b_e_r); int DisplayWidthMM(Display *_d_i_s_p_l_a_y, int _s_c_r_e_e_n___n_u_m_b_e_r);

ARGUMENTS

_d_i_s_p_l_a_y Specifies the connection to the X server.
_c_o_u_n_t___r_e_t_u_r_n Returns the number of pixmap formats that are supported by the display.
_s_c_r_e_e_n___n_u_m_b_e_r Specifies the appropriate screen number on the host server.

DESCRIPTION

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

The _I_m_a_g_e_B_y_t_e_O_r_d_e_r 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 _B_i_t_m_a_p_B_i_t_O_r_d_e_r macro returns _L_S_B_F_i_r_s_t or _M_S_B_F_i_r_s_t 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 _B_i_t_m_a_p_P_a_d macro returns the number of bits that each scanline must be padded.

The _B_i_t_m_a_p_U_n_i_t macro returns the size of a bitmap's scanline unit in bits.

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

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

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

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

STRUCTURES

The _X_P_i_x_m_a_p_F_o_r_m_a_t_V_a_l_u_e_s 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;


SEE ALSO

AllPlanes(3X11), BlackPixelOfScreen(3X11), IsCursorKey(3X11), XFree(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e