JWM Source Documentation
image.h
Go to the documentation of this file.
1 
10 #ifndef IMAGE_H
11 #define IMAGE_H
12 
14 typedef struct ImageNode {
15 
16  struct ImageNode *next;
17  unsigned char *data;
18  int width;
19  int height;
20  char bitmap;
21 #ifdef USE_XRENDER
22  char render;
23 #endif
24 
25 } ImageNode;
26 
34 ImageNode *LoadImage(const char *fileName, int width, int height,
35  char preserveAspect);
36 
42 ImageNode *LoadImageFromDrawable(Drawable pmap, Pixmap mask);
43 
50 ImageNode *CreateImage(unsigned int width, unsigned int height, char bitmap);
51 
55 void DestroyImage(ImageNode *image);
56 
57 #endif /* IMAGE_H */

joewing.net / Projects / JWM