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

ImageNodeLoadImage (const char *fileName)
 Load an image from a file.
ImageNodeLoadImageFromData (char **data)
 Load an image from data.
void DestroyImage (ImageNode *image)
 Destroy an image node.

Detailed Description

Functions to load images.

Author:
Joe Wingbermuehle
Date:
2005-2006

Definition in file image.h.


Typedef Documentation

typedef struct ImageNode ImageNode

Structure to represent an image.


Function Documentation

void DestroyImage ( ImageNode image)

Destroy an image node.

Parameters:
imageThe image to destroy.
ImageNode* LoadImage ( const char *  fileName)

Load an image from a file.

Parameters:
fileNameThe 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:
dataThe image data.
Returns:
A new image node (NULL if there were errors.