Image I/O addon

al_iio_add_handler

bool al_iio_add_handler(const char *extension,
   IIO_LOADER_FUNCTION loader, IIO_SAVER_FUNCTION saver,
   IIO_FS_LOADER_FUNCTION fs_loader, IIO_FS_SAVER_FUNCTION fs_saver)

al_iio_init

bool al_iio_init(void)

Initializes the IIO addon.

al_iio_load

ALLEGRO_BITMAP *al_iio_load(const char *filename)

Loads an image file into an ALLEGRO_BITMAP. The file type is determined by the extension.

al_iio_load_entry

ALLEGRO_BITMAP *al_iio_load_entry(ALLEGRO_FS_ENTRY *pf, const char *ident)

Loads an image from an ALLEGRO_FS_ENTRY into an ALLEGRO_BITMAP. The file type is determined by the passed 'ident' parameter, which is a file name extension including the leading dot.

al_iio_save

int al_iio_save(const char *filename, ALLEGRO_BITMAP *bitmap)

Saves an ALLEGRO_BITMAP to an image file. The file type is determined by the extension.

al_iio_save_entry

int al_iio_save_entry(ALLEGRO_FS_ENTRY *pf, const char *ident,
   ALLEGRO_BITMAP *bitmap)

Saves an ALLEGRO_BITMAP to an ALLEGRO_FS_ENTRY. The file type is determined by the passed 'ident' parameter, which is a file name extension including the leading dot.

iio_load_bmp

ALLEGRO_BITMAP *iio_load_bmp(const char *filename)

Create a new ALLEGRO_BITMAP from a BMP file. The bitmap is created with al_create_bitmap.

See Also: al_iio_load.

iio_load_jpg

ALLEGRO_BITMAP *iio_load_jpg(char const *filename)

Create a new ALLEGRO_BITMAP from a JPEG file. The bitmap is created with al_create_bitmap.

See Also: al_iio_load.

iio_load_pcx

ALLEGRO_BITMAP *iio_load_pcx(const char *filename)

Create a new ALLEGRO_BITMAP from a PCX file. The bitmap is created with al_create_bitmap.

See Also: al_iio_load.

iio_load_png

ALLEGRO_BITMAP *iio_load_png(const char *filename)

Create a new ALLEGRO_BITMAP from a PNG file. The bitmap is created with al_create_bitmap.

See Also: al_iio_load.

iio_load_tga

ALLEGRO_BITMAP *iio_load_tga(const char *filename)

Create a new ALLEGRO_BITMAP from a TGA file. The bitmap is created with al_create_bitmap.

See Also: al_iio_load.

iio_save_bmp

int iio_save_bmp(const char *filename, ALLEGRO_BITMAP *bmp)

Save an ALLEGRO_BITMAP as a BMP file.

See Also: al_iio_save.

iio_save_jpg

int iio_save_jpg(char const *filename, ALLEGRO_BITMAP *bmp)

Save an ALLEGRO_BITMAP as a JPEG file. FIXME: This function is 100% untested right now and not expected to work yet.

See Also: al_iio_save.

iio_save_pcx

int iio_save_pcx(const char *filename, ALLEGRO_BITMAP *bmp)

Save an ALLEGRO_BITMAP as a PCX file.

See Also: al_iio_save.

iio_save_png

int iio_save_png(const char *filename, ALLEGRO_BITMAP *bmp)

Save an ALLEGRO_BITMAP as a PNG file.

See Also: al_iio_save.

iio_save_tga

int iio_save_tga(const char *filename, ALLEGRO_BITMAP *bmp)

Save an ALLEGRO_BITMAP as a TGA file.

See Also: al_iio_save.

Last updated: 2009-03-25 12:35:26 UTC