1al_identify_bitmap_f(3)                                al_identify_bitmap_f(3)
2
3
4

NAME

6       al_identify_bitmap_f - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              char const *al_identify_bitmap_f(ALLEGRO_FILE *fp)
12

DESCRIPTION

14       Tries to guess the bitmap file type of the open ALLEGRO_FILE by reading
15       the first few bytes.  By default  Allegro  cannot  recognize  any  file
16       types,  but  calling al_init_image_addon(3) will add detection of (some
17       of) the types it can read.  You can also use al_register_bitmap_identi‐
18       fier(3) to add identification for custom file types.
19
20       Returns  a  pointer  to  a  static string with a file extension for the
21       type, including the leading dot.  For example “.png”  or  “.jpg”.   Re‐
22       turns NULL if the bitmap type cannot be determined.
23

SINCE

25       5.1.12
26

SEE ALSO

28       al_init_image_addon(3), al_identify_bitmap(3), al_register_bitmap_iden‐
29       tifier(3)
30
31
32
33Allegro reference manual                               al_identify_bitmap_f(3)
Impressum