al_draw_scaled_bitmap(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 for al_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:


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