AL_DRAW_SCALED_ROTATED_BITMAP(3)

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

πŸ’… al_draw_scaled_rotated_bitmap(3) β€” Library Functions Manual

Okay bestie, this page is from the Library Functions Manual, and it’s giving β€œdraw a bitmap that is both scaled and rotated” energy. It’s in the Allegro 5 API family. πŸ¦‹

🌸 NAME 🌸

al_draw_scaled_rotated_bitmap β€” Allegro 5 API

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_draw_scaled_rotated_bitmap(ALLEGRO_BITMAP *bitmap,
   float cx, float cy, float dx, float dy, float xscale, float yscale,
   float angle, int flags)

πŸ¦‹ DESCRIPTION πŸ¦‹

This is like al_draw_rotated_bitmap(3), but it can also scale the bitmap. Iconic, honestly. πŸ’…

The point at cx/cy in the bitmap will be drawn at dx/dy, and the bitmap is rotated and scaled around this point. ✨

🫢 the parameters, bestie

  • cx β€” center x
  • cy β€” center y
  • dx β€” destination x
  • dy β€” destination y
  • xscale β€” how much to scale on the x-axis (e.g. 2 for twice the size)
  • yscale β€” how much to scale on the y-axis
  • angle β€” angle by which to rotate (radians)
  • flags β€” same as for al_draw_bitmap(3)
Heads up, bestie: see al_draw_bitmap(3) for a note on restrictions on which bitmaps can be drawn where. Don’t skip that vibe check. 🫢

πŸŽ€ SEE ALSO πŸŽ€


Source/version: Allegro reference manual 🌈 Β· date: not listed on this page. Byeee bestie πŸ’–βœ¨

πŸ“¦ 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