Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

image.h File Reference

Bitmap. More...

#include <lescegra/util/object.h>

Include dependency graph for image.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  LsgImage
 Bitmap. More...


Defines

#define LSG_IMAGE_H   1
#define IMAGE_GRAYSCALE   1
#define IMAGE_RGB   3
#define IMAGE_RGBA   4

Functions

LsgImageLsgImage_create (int width, int height, int bpp)
void LsgImage_init (LsgImage *self, int width, int height, int bpp)
void LsgImage_destroy (LsgImage *self)
LsgImageLsgImage_loadPCX (const char *filename)


Detailed Description

Bitmap.


Function Documentation

LsgImage* LsgImage_create int  width,
int  height,
int  bpp
 

Allocate and initialize an image with the given resolution and number of channels.

Parameters:
width The width of the bitmap
height The height of the bitmap
bpp The number of channels
Returns:
An image with the given width, height and number of channels

LsgImage* LsgImage_loadPCX const char *  filename  ) 
 

Load an image stored in PCX format.

Parameters:
filename The name of the PCX file
Returns:
The bitmap stored in the file referenced by filename


(c) 2003, by Enno Cramer
generated on 9 Jul 2003
lescegra - doxygen