1 #include <X11/Xlib.h> 2 #include <X11/Xutil.h> 3 #include <stdio.h> 4 #include <stdlib.h> 5 #include <string.h> 6 7 unsigned long AllocColor( Display *dpy ,Colormap cmap , char *color , XColor *xcol , Bool sw ); 8 9 void CreatePixmapFromData( Display *dpy , Window win , Colormap cmap , char **xpmdata , Pixmap *pm1 , Pixmap *pm2 ); 10 11 void MDrawPoint( char *ptr , int x , int y , int xx , int yy ); 12