al_draw_bitmap_region
void al_draw_bitmap_region(ALLEGRO_BITMAP *bitmap,
float sx, float sy, float sw, float sh, float dx, float dy, int flags)
Introduced in 5.0.0
Draws a region of the given bitmap to the target bitmap.
- sx - source x
- sy - source y
- sw - source width (width of region to blit)
- sh - source height (height of region to blit)
- dx - destination x
- dy - destination y
- flags - same as for al_draw_bitmap
See also: al_draw_bitmap, al_draw_scaled_bitmap, al_draw_rotated_bitmap, al_draw_scaled_rotated_bitmap
Most helpful discussions:
- Creating sub bitmap from display
- c++ Allegro 5 - drawing bitmap region over backgound
- RPG Player
- Image Keyboard
- Image transition too slow !
- Blit to Android display
- al_draw_bitmap_region does not return
- Create sub bitmap
- Rotate text with transformations
- Problem with al_draw_filled_circle()
Other recent discussions:
- Resetting Player Location on State Change
- All bullets firing when I press my fire key
- [A5] Masked drawing?
- More Trouble - Loop Not Iterating Properly
- What am I doing wrong here?
- Illegal Function Call
- Player class not recognized
- Passing the object isn't working
- Blank Screen
- Need some tips to make fast allegro programs