XmuReadBitmapData(Xmu) X Version 11 (Release 5) XmuReadBitmapData(Xmu)
6 January 1993
Name
XmuReadBitmapData - read bitmap file description
Syntax
cc . . . -lXmu
#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;
int XmuReadBitmapDataFromFile(filename, width, height, datap, x_hot, y_hot)
char *filename;
unsigned int *width, *height;
unsigned char **datap;
int *x_hot, *y_hot;
Arguments
stream Specifies the stream to read from.
width Returns the width of the bitmap.
height Returns the height of the bitmap.
datap Returns the parsed bitmap data.
xhot Returns the x coordinate of the hotspot.
yhot Returns the y coordinate of the hotspot.
filename Specifies the file to read from.
Description
The XmuReadBitmapData function reads a standard bitmap file description
from the specified stream, and returns the parsed data in a format suit-
able for passing to XCreateBitmapFromData. The return value of the func-
tion has the same interpretation as the return value for XReadBitmapFile.
The XmuReadBitmapDataFromFile function reads a standard bitmap file
description from the specified file, and returns the parsed data in a
format suitable for passing to XCreateBitmapFromData. The return value
of the function has the same interpretation as the return value for
XReadBitmapFile.
See also
XmuDrawRoundedRectangle(Xmu), XmuDrawLogo(Xmu), XmuCre-
ateStippledPixmap(Xmu), XmuLocateBitmapFile(Xmu), XmuCre-
atePixmapFromBitmap(Xmu), XCreateBitmapFromData(XS), XReadBitmapFile(XS)
Xlib - C Language X Interface