al_draw_scaled_bitmap(3alleg5)
π al_draw_scaled_bitmap β Allegro 5 API π
okay bestie, welcome to the al_draw_scaled_bitmap(3alleg5) page, this one lives in the Allegro 5 API and it's literally the glow-up button for your bitmaps β¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
void al_draw_scaled_bitmap(ALLEGRO_BITMAP *bitmap,
float sx, float sy, float sw, float sh,
float dx, float dy, float dw, float dh, int flags)
π¦ DESCRIPTION π¦
So what it does: it draws a scaled version of the bitmap you hand it onto the target bitmap. That's it, that's the whole vibe. Crop a lil region, stretch it out, drop it somewhere else. Iconic. π
Here's the tea on every single argument, no skipping, we don't do that here:
sxβ source x πsyβ source y πswβ source width πshβ source height πdxβ destination x πdyβ destination y πdwβ destination width πdhβ destination height πflagsβ same as foral_draw_bitmap(3alleg5)π
heads up babes: there's a whole note about restrictions on which bitmaps can be drawn where, and it lives over in al_draw_bitmap(3alleg5). Go read that one too, fr fr, don't just wing it π
π SEE ALSO π
your little reading list, go off:
al_draw_bitmap(3alleg5)al_draw_bitmap_region(3alleg5)al_draw_rotated_bitmap(3alleg5)al_draw_scaled_rotated_bitmap(3alleg5)
mwah π that's the whole page. this came straight out of the Allegro reference manual, and it's the al_draw_scaled_bitmap(3alleg5) entry β go scale something pretty, bestie, you got this π«Άβ¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms