# Image I/O addon ## al_add_image_handler
    bool al_add_image_handler(const char *extension,
       ALLEGRO_IIO_LOADER_FUNCTION loader, ALLEGRO_IIO_SAVER_FUNCTION saver,
       ALLEGRO_IIO_FS_LOADER_FUNCTION fs_loader, ALLEGRO_IIO_FS_SAVER_FUNCTION fs_saver)
## al_init_iio_addon
    bool al_init_iio_addon(void)
Initializes the IIO addon. ## al_load_bitmap
    ALLEGRO_BITMAP *al_load_bitmap(char const *filename)
    ALLEGRO_BITMAP *al_load_bitmap(const char *filename)
Loads an image file into an ALLEGRO_BITMAP. The file type is determined by the extension. ## al_load_bitmap_entry
    ALLEGRO_BITMAP *al_load_bitmap_entry(ALLEGRO_FILE *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_save_bitmap
    int al_save_bitmap(const char *filename, ALLEGRO_BITMAP *bitmap)
Saves an ALLEGRO_BITMAP to an image file. The file type is determined by the extension. ## al_save_bitmap_entry
    int al_save_bitmap_entry(ALLEGRO_FILE *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. ## al_load_bmp
    ALLEGRO_BITMAP *al_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_load_bitmap. ## al_load_jpg
    ALLEGRO_BITMAP *al_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_load_bitmap. ## al_load_pcx
    ALLEGRO_BITMAP *al_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_load_bitmap. ## al_load_png
    ALLEGRO_BITMAP *al_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_load_bitmap. ## al_load_tga
    ALLEGRO_BITMAP *al_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_load_bitmap. ## al_save_bmp
    int al_save_bmp(const char *filename, ALLEGRO_BITMAP *bmp)
Save an ALLEGRO_BITMAP as a BMP file. See Also: al_save_bitmap. ## al_save_jpg
    int al_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_save_bitmap. ## al_save_pcx
    int al_save_pcx(const char *filename, ALLEGRO_BITMAP *bmp)
Save an ALLEGRO_BITMAP as a PCX file. See Also: al_save_bitmap. ## al_save_png
    int al_save_png(const char *filename, ALLEGRO_BITMAP *bmp)
Save an ALLEGRO_BITMAP as a PNG file. See Also: al_save_bitmap. ## al_save_tga
    int al_save_tga(const char *filename, ALLEGRO_BITMAP *bmp)
Save an ALLEGRO_BITMAP as a TGA file. See Also: al_save_bitmap.

Last updated: 2009-05-04 10:18:42 UTC