1al_get_pixel_size(3) al_get_pixel_size(3)
23
4
NAME
6al_get_pixel_size - Allegro 5 API
7
SYNOPSIS
9#include <allegro5/allegro.h>
1011
int al_get_pixel_size(int format)
12
DESCRIPTION
14Return the number of bytes that a pixel of the given format occupies.
15For blocked pixel formats (e.g. compressed formats), this returns 0.
16
SEE ALSO
18ALLEGRO_PIXEL_FORMAT(3), al_get_pixel_format_bits(3)
1920
21
22
Allegro reference manual al_get_pixel_size(3)