NAME
XmuReadBitmapData — read and check bitmap data from any stream source.
SYNOPSIS
#include <X11/Xmu/Drawing.h>
int XmuReadBitmapData(fstream, width, height, datap, x_hot, y_hot)
FILE ∗fstream;
unsigned int ∗width, ∗height;
unsigned char ∗∗datap;
int ∗x_hot, ∗y_hot;
ARGUMENTS
streamSpecifies the stream to read from.
widthReturns the width of the bitmap.
heightReturns the height of the bitmap.
datapReturns the parsed bitmap data.
x_hotReturns the x coordinate of the hotspot.
y_hotReturns the y coordinate of the hotspot.
DESCRIPTION
XmuReadBitmapData reads a standard bitmap file description from the specified stream, and returns the parsed data in a format suitable for passing to XCreatePixmapFromBitmapData(). The return value of the function has the same meaning as the return value for XReadBitmapFile().
XmuReadBitmapData is equivalent to XReadBitmapFile(), except that this routine processes any type of stream input, and it does not create a pixmap containing the resulting data. This is useful when you want to create a multi-plane pixmap from the data, and don’t want to create an intermediate one-plane pixmap.
SEE ALSO
XmuCreatePixmapFromBitmap, XmuCreateStippledPixmap, XmuDrawLogo, XmuDrawRoundedRectangle, XmuFillRoundedRectangle, XmuLocateBitmapFile, XmuReadBitmapDataFromFile, XmuReleaseStippledPixmap.
Xlib Reference Manual