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

# is\_inside\_bitmap(3alleg4)

Tells if a point is inside a bitmap. Allegro game programming library.

## NAME

is\_inside\_bitmap - Tells if a point is inside a bitmap. Allegro game programming library.

## SYNOPSIS

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

**int is\_inside\_bitmap(BITMAP \*bmp, int x, int y, int clip);**

## DESCRIPTION

Returns non-zero if point (x, y) lies inside the bitmap. If \`clip' is non-zero, the function compares the coordinates with the clipping rectangle, that is it returns non-zero if the point lies inside the clipping rectangle or if clipping is disabled for the bitmap. If \`clip' is zero, the function compares the coordinates with the actual dimensions of the bitmap.

## SEE ALSO

**set\_clip\_rect**(3alleg4), **set\_clip\_state**(3alleg4), **getpixel**(3alleg4)
