AL_DRAW_TINTED_SCALED_ROTATED_BITMAP_REGION(3)
π al_draw_tinted_scaled_rotated_bitmap_region(3) π
okay so bestie, this is the page for al_draw_tinted_scaled_rotated_bitmap_region(3) from the Allegro 5 API, living in the Library Functions Manual β¨. She's got a long name but she's iconic, no cap.
π NAME π
al_draw_tinted_scaled_rotated_bitmap_region β Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_draw_tinted_scaled_rotated_bitmap_region(ALLEGRO_BITMAP *bitmap,
float sx, float sy, float sw, float sh,
ALLEGRO_COLOR tint,
float cx, float cy, float dx, float dy, float xscale, float yscale,
float angle, int flags)
π DESCRIPTION π
It's literally like al_draw_tinted_scaled_rotated_bitmap(3) but you specify an area within the bitmap to be drawn π―. Same whole vibe, except you're picking the exact little region to show off, and that's slay.
You can get the same effect with a sub bitmap, if that's more your main character energy:
al_draw_tinted_scaled_rotated_bitmap(bitmap, sx, sy, sw, sh, tint,
cx, cy, dx, dy, xscale, yscale, angle, flags);
/* This draws the same: */
sub_bitmap = al_create_sub_bitmap(bitmap, sx, sy, sw, sh);
al_draw_tinted_scaled_rotated_bitmap(sub_bitmap, tint, cx, cy,
dx, dy, xscale, yscale, angle, flags);
Also, go peek at al_draw_bitmap(3) for a note on restrictions on which bitmaps can be drawn where π. That part is lowkey important, bestie β don't skip the fine print.
π¦ SINCE π¦
5.0.6, 5.1.0 β she's been here a minute π
π SEE ALSO π
okay bye bestie, this page is from the Allegro reference manual π . The original footer didn't show a date, so I'm not inventing one β no fake tea on my watch π«Άβ¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms