#include <image.h>
Collaboration diagram for LsgImage:

Data Fields | |
| LsgObject | super |
| int | width |
| int | height |
| int | bpp |
| unsigned char * | data |
Related Functions | |
| (Note that these are not member functions.) | |
| LsgImage * | LsgImage_create (int width, int height, int bpp) |
| void | LsgImage_init (LsgImage *self, int width, int height, int bpp) |
| void | LsgImage_mirrorX (LsgImage *self) |
| void | LsgImage_mirrorY (LsgImage *self) |
| void | LsgImage_destroy (LsgImage *self) |
| LsgImage * | LsgImage_load (const char *filename) |
| LsgImage * | LsgImage_loadPCX (const char *filename) |
| LsgImage * | LsgImage_loadTGA (const char *filename) |
A bitmap with a variable number of color channels. Every channel has a resolution of 8 bit per pixel.
|
||||||||||||||||
|
Allocate and initialize an image with the given resolution and number of channels.
|
|
||||||||||||||||||||
|
Constructor for LsgImage. Allocate a pixel buffer of the given dimension and resolution.
|
|
|
Mirror the image horizontally.
|
|
|
Mirror the image vertically.
|
|
|
Destructor for LsgImage. Free the allocated pixel buffer.
|
|
|
Load an image stored in any of the supported image formats (currently PCX and TGA). The apropriate loader is determined from the filename.
|
|
|
Load an image stored in PCX format.
|
|
|
Load an image stored in TGA format. Supported are Indexed and True Color images, either uncompressed or RLE encoded.
|