DOKK / manpages / debian 11 / allegro4-doc / save_tga.3alleg4.en
save_tga(3alleg4) Allegro manual save_tga(3alleg4)

save_tga - Saves a bitmap into a TGA file. Allegro game programming library.

#include <allegro.h>

int save_tga(const char *filename, BITMAP *bmp, const RGB *pal);

Writes a bitmap into a 256-color, 15-bit hicolor, 24-bit truecolor, or 32-bit truecolor+alpha TGA file.

Returns non-zero on error.

save_bitmap(3alleg4)

version 4.4.3 Allegro