al_draw_scaled_bitmap(3)

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

πŸ’– NAME πŸ’–

okay so bestie, this page is al_draw_scaled_bitmap(3), and it comes from the Library Functions Manual β€” Allegro 5 API. It's literally the "draw a bitmap, but scaled" function, and yes, it ate. ✨

πŸ¦‹ 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 🌸

Draws a scaled version of the given bitmap to the target bitmap. That's the whole vibe: source bitmap in, scaled version onto the target bitmap out. πŸ’…

Args, from the group chat:

  • sx β€” source x, iykyk. πŸŽ€
  • sy β€” source y.
  • sw β€” source width.
  • sh β€” source height.
  • dx β€” destination x.
  • dy β€” destination y.
  • dw β€” destination width.
  • dh β€” destination height.
  • flags β€” same as for al_draw_bitmap(3), no cap. 🫢
Heads up, bestie: see al_draw_bitmap(3) for a note on restrictions on which bitmaps can be drawn where. Not every bitmap gets to be the main character in every spot, so check that note. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘


source: Allegro reference manual Β· date: not printed on the original page, bestie β€” but this whole thing is giving Allegro 5 API energy, periodt. πŸ’–πŸŽ€

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