---
name: "al_draw_tinted_scaled_rotated_bitmap_region"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_draw_tinted_scaled_rotated_bitmap_region/3alleg5"
---

# al\_draw\_tinted\_scaled\_rotated\_bitmap\_region(3alleg5)

Allegro 5 API

## NAME

al\_draw\_tinted\_scaled\_rotated\_bitmap\_region - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_draw_tinted_scaled_rotated_bitmap_region(ALLEGRO_BITMAP *bitmap,
     float sx, float sy, float sw, float sh,
     ALLEGRO_COLOR tint,
     float cx, float cy, float dx, float dy, float xscale, float yscale,
     float angle, int flags)
  ```

## DESCRIPTION

Like al\_draw\_tinted\_scaled\_rotated\_bitmap(3alleg5) but you specify an area within the bitmap to be drawn.

You can get the same effect with a sub bitmap:

-

  ```
  al_draw_tinted_scaled_rotated_bitmap(bitmap, sx, sy, sw, sh, tint,
      cx, cy, dx, dy, xscale, yscale, angle, flags);
  /* This draws the same: */
  sub_bitmap = al_create_sub_bitmap(bitmap, sx, sy, sw, sh);
  al_draw_tinted_scaled_rotated_bitmap(sub_bitmap, tint, cx, cy,
      dx, dy, xscale, yscale, angle, flags);
  ```

See al\_draw\_bitmap(3alleg5) for a note on restrictions on which bitmaps can be drawn where.

## SINCE

5\.0.6, 5.1.0

## SEE ALSO

al\_draw\_tinted\_bitmap(3alleg5)
