al_draw_scaled_bitmap
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)
Introduced in 5.0.0
Draws a scaled version of the given bitmap to the target bitmap.
- 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
See also: al_draw_bitmap, al_draw_bitmap_region, al_draw_rotated_bitmap, al_draw_scaled_rotated_bitmap,
Examples: ex_blend2, ex_blend_bench, ex_draw, ex_draw_bitmap, ex_dualies, ex_gldepth, ex_membmp, ex_mouse_cursor, ex_multiwin, ex_prim, ex_resize2, ex_subbitmap
Most helpful discussions:
- Problem toggling between Window and Fullscreen (1)
- [A5] Copying a bitmap from a transformed screen (1)
- [A5] Show & Hide window/display Cross-Platform ?
- Why some Shaders don't work !
- Allegro Video Addon Resolution Cap?
- Read Write Destination Problem
- Image transition too slow !
- [A5] Fullscreen + keep 4:3 ratio
- Page Flip Effect
- [a5] al_create_bitmap() not creating mipmap in OPENGL
Other recent discussions:
- Rotate text with transformations
- "al_put_pixel" not working
- Major Memory Issue in Allegro 5 Project
- Is this me or Allegro?!?
- Shaders not working properly
- Choppy graphics
- Floodfill...ish... math.
- al_get_backbuffer does not work
- Drawing to display in class member functions not working
- Looking for allegro expert, that would help us with development