1 /*
2 // bitmap.c
3 //
4 //
5 */
6 
7 #include "xbook.h"
8 
LoadBitmap(display,window,filename,width,height)9 Pixmap LoadBitmap( display, window, filename, width, height )
10 Display    *display;
11 Window     window;
12 char       filename[];
13 int        *width, *height;
14 {
15     int status;
16     int xHotSpot, yHotSpot;
17     Pixmap pixmap;
18 
19     status = XReadBitmapFile( display, window,
20 				       filename,
21 				       width, height,
22 				       &pixmap,
23 				       &xHotSpot, &yHotSpot );
24     if( status != BitmapSuccess )
25     {
26         QuitX( display, "Nao pode ler bitmap ", filename );
27     }
28     return( pixmap );
29 }
30