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)
- Section of Code Lagging the Program
- linking on ubuntu
- Problem with al_creat_bitmap
- Grabber With Allegro 5?
- A5 Fullscreen Vs Windowed
- Need some help with shaders
- al_load_bitmap question
- MOUSE question
Other recent discussions:
- A shader that sets transparancy
- GLSL Shader and bit operations on a state (FHP LGCA Simulation)
- Delay on event queue while on thread
- help: memory bitmap background image causing artifacts
- Same code - slow on Windows, fast on Linux - timer fires too slow?
- How to properly use al_draw_scaled_bitmap?
- ALLEGRO_LOCKED_REGION confusion
- Titles for veteran a dot cc members
- BITMAP quality gets reduced
- git format-patch: troubles with white space trailing