al_get_bitmap_format(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, gather round, because this one is short but it's important. **al_get_bitmap_format</b> β€” it's literally the Allegro 5 API function that tells you what pixel format your bitmap is rocking. that's it. that's the whole job. and it eats. ✨


🌸 SYNOPSIS 🌸

like, here's how you call her:

#include <allegro5/allegro.h>

int al_get_bitmap_format(ALLEGRO_BITMAP *bitmap)

she takes one (1) argument, a pointer to an ALLEGRO_BITMAP, and she hands you back an int. no drama. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? she returns the pixel format of a bitmap. that's the vibe. you give her a bitmap, she tells you what format its pixels are in. no cap. πŸŽ€

like, it's giving "let me check what this bitmap is made of" and honestly? iconic. the return value is that pixel format, and if you wanna know what the possible formats even are, that's what the SEE ALSO is for, bestie. iykyk. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, fr fr, they're the main character energy you need to make sense of that return value:

  • ALLEGRO_PIXEL_FORMAT (3alleg5)
  • al_set_new_bitmap_flags (3alleg5)

and that's the whole page, bestie!! πŸ’œ this lil gem lives in the Allegro reference manual β€” it's the al_get_bitmap_format page, section 3alleg5, and yeah, that's the same name up top and at the bottom because manpages love a mirror moment. πŸ™ˆβœ¨ now go check some pixel formats, you absolute legend. 🫢🌸

πŸ“¦ where this page comes from