img.h File Reference

Reads image files (BMP, PNG, JPG). More...

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


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_bitmapimg_read (char *filename, int alpha_mode)
void img_free (struct img_bitmap *bitmap)

Detailed Description


Define Documentation

#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.


Function Documentation

struct img_bitmap* img_read ( char *  filename,
int  alpha_mode 
) [read]

Reads an image file (BMP, PNG, JPG).

Parameters:
filename image filename
alpha_mode preserve or ignore alpha channel
Returns:
a pointer to a bitmap or NULL if an error occured

void img_free ( struct img_bitmap bitmap  ) 

Bitmap data cleanup.

Frees allocated memory.

Parameters:
bitmap bitmap data


Generated on Mon Mar 29 01:39:29 2010 for Veronica by  doxygen 1.5.8