al_draw_scaled_rotated_bitmap
void al_draw_scaled_rotated_bitmap(ALLEGRO_BITMAP *bitmap,
float cx, float cy, float dx, float dy, float xscale, float yscale,
float angle, int flags)
Introduced in 5.0.0
Like al_draw_rotated_bitmap, but can also scale the bitmap.
The point at cx/cy in the bitmap will be drawn at dx/dy and the bitmap is rotated and scaled around this point.
- cx - center x
- cy - center y
- dx - destination x
- dy - destination y
- xscale - how much to scale on the x-axis (e.g. 2 for twice the size)
- yscale - how much to scale on the y-axis
- angle - angle by which to rotate
- flags - same as for al_draw_bitmap
See also: al_draw_bitmap, al_draw_bitmap_region, al_draw_scaled_bitmap, al_draw_rotated_bitmap
Examples: ex_bitmap, ex_bitmap_target, ex_blend_bench, ex_filter, ex_premulalpha
Most helpful discussions:
- Mouse Click Inside Timer Function
- Thread locks too soon
- git format-patch: troubles with white space trailing
- 15+ years after learning C/C++, I finally learned what a typedef is for
- Help with blender and alpha masking
- Blit to Android display
- Rotate text with transformations
- [A5] Lit (fog?) on sprite
- Allegro windows show up on incorrect monitor (continued)
- [A5] al_draw_scaled_bitmap vs al_draw_scaled_rotated_bitmap
Other recent discussions: