---
name: "get_clip_rect"
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/get_clip_rect/3alleg4"
---

# get\_clip\_rect(3alleg4)

Returns the clipping rectangle of a bitmap. Allegro game programming library.

## NAME

get\_clip\_rect - Returns the clipping rectangle of a bitmap. Allegro game programming library.

## SYNOPSIS

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

**void get\_clip\_rect(BITMAP \*bitmap, int \*x1, int \*y1, int \*x2, int \*y2);**

## DESCRIPTION

Returns the clipping rectangle for the specified bitmap.

## SEE ALSO

**set\_clip\_rect**(3alleg4), **add\_clip\_rect**(3alleg4), **set\_clip\_state**(3alleg4), **get\_clip\_state**(3alleg4)
