http://slackware.bholcomb.com/slackware/slackware-11.0/source/xap/xscreensaver/xscree...
[xscreensaver] / utils / minixpm.h
1 /* xscreensaver, Copyright (c) 2001-2006 Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11
12 #ifndef __MINIXPM_H__
13 #define __MINIXPM_H__
14
15
16 /* A dead simple XPM parser that knows how to make XImage structures.
17    Only handles single-byte color XPMs.
18  */
19
20 extern XImage * minixpm_to_ximage (Display *, Visual *, Colormap, int depth,
21                                    unsigned long transparent_color,
22                                    const char * const * data,
23                                    int *width_ret, int *height_ret,
24                                    unsigned long **pixels_ret, 
25                                    int *npixels_ret,
26                                    unsigned char **mask_ret);
27
28 #endif /* __MINIXPM_H__ */