---
name: "is_same_bitmap"
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/is_same_bitmap"
---

# is\_same\_bitmap(3alleg)

Tells if two bitmaps describe the same drawing surface. Allegro game programming library.

## NAME

is\_same\_bitmap - Tells if two bitmaps describe the same drawing surface. Allegro game programming library.

## SYNOPSIS

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

**int is\_same\_bitmap(BITMAP \*bmp1, BITMAP \*bmp2);**

## DESCRIPTION

Returns TRUE if the two bitmaps describe the same drawing surface, ie.  the pointers are equal, one is a sub-bitmap of the other, or they are  both sub-bitmaps of a common parent.

## SEE ALSO

[**create\_sub\_bitmap**(3alleg)](/create_sub_bitmap/3alleg.md)
