save_bmp(3alleg4)
πΎ save_bmp β the "put my pixels in a file" girlie πΎ
okay so bestie, we're deep in the Allegro game programming library manual rn, and this one's a lil function called save_bmp. she's simple, she's iconic, she does exactly one thing and she does it well. no notes. π
β¨ NAME β¨
save_bmp β Saves a bitmap into a BMP file. Allegro game programming library.
πΈ SYNOPSIS πΈ
#include <allegro.h>
int save_bmp(const char *filename, BITMAP *bmp, const RGB *pal);
π DESCRIPTION π
so like, what she does is write a bitmap into a BMP file. that's it. that's the whole vibe. β¨
and not just any BMP, bestie β she's giving you a 256-color BMP or a 24-bit truecolor BMP. two options, both slay, pick your fighter. π
π¦ RETURN VALUE π¦
returns non-zero on error. so if you get anything that isn't zero, that's the universe telling you something went wrong π β zero means we ate, non-zero means we did not. π«Ά
π SEE ALSO π
save_bitmap(3alleg4)β her sister, also valid, also iconic π
fr fr, that's the whole page. short and sweet, main character energy, no cap. π
okay pookies, that's a wrap on this one β brought to you by Allegro, version 4.4.3, the manual that raised us. go save some bitmaps, you got this. ππβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms