JWM Source Documentation
image.h File Reference
Functions to load images. More...
Go to the source code of this file.
Data Structures | |
| struct | ImageNode |
| Structure to represent an image. More... | |
Typedefs | |
| typedef struct ImageNode | ImageNode |
| Structure to represent an image. | |
Functions | |
| ImageNode * | LoadImage (const char *fileName) |
| Load an image from a file. | |
| ImageNode * | LoadImageFromData (char **data) |
| Load an image from data. | |
| void | DestroyImage (ImageNode *image) |
| Destroy an image node. | |
Detailed Description
Typedef Documentation
Function Documentation
| void DestroyImage | ( | ImageNode * | image | ) |
Destroy an image node.
- Parameters:
-
image The image to destroy.
| ImageNode* LoadImage | ( | const char * | fileName | ) |
Load an image from a file.
- Parameters:
-
fileName The file containing the image.
- Returns:
- A new image node (NULL if the image could not be loaded).
| ImageNode* LoadImageFromData | ( | char ** | data | ) |
Load an image from data.
The data must be in the format from the EWMH spec.
- Parameters:
-
data The image data.
- Returns:
- A new image node (NULL if there were errors.