Data Structures | |
struct | img_bitmap |
Image data, including image bitmap. More... | |
Defines | |
#define | IMG_IGNORE_ALPHA 0 |
#define | IMG_PRESERVE_ALPHA 1 |
Functions | |
struct img_bitmap * | img_read (char *filename, int alpha_mode) |
void | img_free (struct img_bitmap *bitmap) |
#define IMG_IGNORE_ALPHA 0 |
Value to ignore alpha channel in img_read calls.
#define IMG_PRESERVE_ALPHA 1 |
Value to preserve alpha channel in img_read calls.
struct img_bitmap* img_read | ( | char * | filename, | |
int | alpha_mode | |||
) | [read] |
Reads an image file (BMP, PNG, JPG).
filename | image filename | |
alpha_mode | preserve or ignore alpha channel |
void img_free | ( | struct img_bitmap * | bitmap | ) |
Bitmap data cleanup.
Frees allocated memory.
bitmap | bitmap data |