SYNOPSIS

  • #include <allegro5/allegro.h>
    
    void al_draw_bitmap_region(ALLEGRO_BITMAP *bitmap,
       float sx, float sy, float sw, float sh, float dx, float dy, int flags)
    
    

DESCRIPTION

Draws a region of the given bitmap to the target bitmap.

\[bu]

sx - source x

\[bu]

sy - source y

\[bu]

sw - source width (width of region to blit)

\[bu]

sh - source height (height of region to blit)

\[bu]

dx - destination x

\[bu]

dy - destination y

\[bu]

flags - same as for al_draw_bitmap(3alleg5)

RELATED TO al_draw_bitmap_region…

al_draw_bitmap(3alleg5), al_draw_scaled_bitmap(3alleg5), al_draw_rotated_bitmap(3alleg5), al_draw_scaled_rotated_bitmap(3alleg5)