Go to the source code of this file.
Classes | |
| struct | Bcolor |
| struct | CMap |
| struct | Image |
Typedefs | |
| typedef unsigned char | Byte |
Functions | |
| Image * | img_create (int type, int w, int h) |
| Creates a new image. | |
| void | img_clear (Image *i, Color c) |
| Clears an image with a color. | |
| Image * | img_read (char *fname) |
| Reads a ras file and creates an image from it. | |
| void | img_write (Image *i, char *fname, int cflag) |
| Writes a ras file from an Image. | |
| void | img_puti (Image *i, int u, int v, int c) |
| Sets a pixel on the image. | |
| int | img_geti (Image *i, int u, int v) |
| Gets a pixel on the image. | |
| void | img_putc (Image *i, int u, int v, Color c) |
| Sets a pixel on the image using Color. | |
| Color | img_getc (Image *i, int u, int v) |
| Gets the Color of a pixel on the image. | |
| void | img_free (Image *i) |
| Frees an image. | |
| void | cmap_read (CMap *m, int maplength, int fd) |
| typedef unsigned char Byte |
| void cmap_read | ( | CMap * | m, | |
| int | maplength, | |||
| int | fd | |||
| ) |
| void img_clear | ( | Image * | i, | |
| Color | c | |||
| ) |
Clears an image with a color.
| i | The image to clear | |
| c | The color to fill. |
| Image* img_create | ( | int | type, | |
| int | w, | |||
| int | h | |||
| ) |
| void img_free | ( | Image * | i | ) |
Frees an image.
| Color img_getc | ( | Image * | i, | |
| int | u, | |||
| int | v | |||
| ) |
Gets the Color of a pixel on the image.
| int img_geti | ( | Image * | i, | |
| int | u, | |||
| int | v | |||
| ) |
Gets a pixel on the image.
| void img_putc | ( | Image * | i, | |
| int | u, | |||
| int | v, | |||
| Color | c | |||
| ) |
Sets a pixel on the image using Color.
| void img_puti | ( | Image * | i, | |
| int | u, | |||
| int | v, | |||
| int | c | |||
| ) |
Sets a pixel on the image.
| Image* img_read | ( | char * | fname | ) |
Reads a ras file and creates an image from it.
| fname | The file to read |
| void img_write | ( | Image * | i, | |
| char * | fname, | |||
| int | cflag | |||
| ) |
1.4.7