1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
.TH "al_identify_bitmap_f" "3" "" "Allegro reference manual" ""
.SH NAME
.PP
al_identify_bitmap_f \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro.h>
char\ const\ *al_identify_bitmap_f(ALLEGRO_FILE\ *fp)
\f[]
.fi
.SH DESCRIPTION
.PP
Tries to guess the bitmap file type of the open ALLEGRO_FILE by reading
the first few bytes.
By default Allegro cannot recognize any file types, but calling
al_init_image_addon(3) will add detection of (some of) the types it can
read.
You can also use al_register_bitmap_identifier(3) to add identification
for custom file types.
.PP
Returns a pointer to a static string with a file extension for the type,
including the leading dot.
For example ".png" or ".jpg".
Returns NULL if the bitmap type cannot be determined.
.SH SINCE
.PP
5.1.12
.SH SEE ALSO
.PP
al_init_image_addon(3), al_identify_bitmap(3),
al_register_bitmap_identifier(3)
|