---
name: "is_linear_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_linear_bitmap"
---

# is\_linear\_bitmap(3alleg)

Tells if a bitmap is linear. Allegro game programming library.

## NAME

is\_linear\_bitmap - Tells if a bitmap is linear. Allegro game programming library.

## SYNOPSIS

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

**int is\_linear\_bitmap(BITMAP \*bmp);**

## DESCRIPTION

Returns TRUE if bmp is a linear bitmap, i.e. a bitmap that can be accessed linearly within each scanline (for example a memory bitmap, the DOS VGA or SVGA screen, Windows bitmaps, etc). Linear bitmaps can be used with the \_putpixel(), \_getpixel(), bmp\_write\_line(), and bmp\_read\_line() functions.

Historically there were only linear and planar bitmaps for Allegro, so is\_linear\_bitmap() is actually an alias for !is\_planar\_bitmap().

## SEE ALSO

[**is\_planar\_bitmap**(3alleg)](/is_planar_bitmap/3alleg.md), [**is\_memory\_bitmap**(3alleg)](/is_memory_bitmap/3alleg.md)
