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)
- 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
Other recent discussions:
- git format-patch: troubles with white space trailing
- scaling low-res screens
- Scaling down runtime created bitmaps makes them transparent
- Purple Martians update
- al_draw_scaled_bitmpa not working if called more than 1 time (-1)
- Shader Puzzle aka Reverse Engineering cool effect
- 15+ years after learning C/C++, I finally learned what a typedef is for
- video & physfs problems in the same file
- Read Access Violation on al_destroy_bitmap()
- Drawing antialiased primitives to bitmaps?