AL_DRAW_TINTED_SCALED_ROTATED_BITMAP_REGION(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… 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