---
name: "pivot_scaled_sprite"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pivot_scaled_sprite/3alleg4"
---

# pivot\_scaled\_sprite(3alleg4)

Rotates and stretches a sprite around a specified point. Allegro game programming library.

## NAME

pivot\_scaled\_sprite - Rotates and stretches a sprite around a specified point. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void pivot\_scaled\_sprite(BITMAP \*bmp, BITMAP \*sprite, int x, int y,** **int cx, int cy, fixed angle, fixed scale);**

## DESCRIPTION

Like rotate\_scaled\_sprite(), but aligns the point in the sprite given by (cx, cy) to (x, y) in the bitmap, then rotates and scales around this point.

## SEE ALSO

**rotate\_sprite**(3alleg4), **rotate\_scaled\_sprite**(3alleg4), **pivot\_sprite**(3alleg4), **pivot\_scaled\_sprite\_v\_flip**(3alleg4)
