---
name: "add_clip_rect"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/add_clip_rect"
---

# add\_clip\_rect(3alleg)

Intersects a bitmap's clipping rectangle with the given area. Allegro game programming library.

## NAME

add\_clip\_rect - Intersects a bitmap's clipping rectangle with the given area. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

Sets the clipping rectangle of the specified bitmap as the intersection of its current clipping rectangle and the rectangle described by the four coordinates.

## SEE ALSO

[**set\_clip\_rect**(3alleg)](/set_clip_rect/3alleg.md), [**get\_clip\_rect**(3alleg)](/get_clip_rect/3alleg.md), [**set\_clip\_state**(3alleg)](/set_clip_state/3alleg.md), [**get\_clip\_state**(3alleg)](/get_clip_state/3alleg.md)
