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

# lock\_bitmap(3alleg)

Locks the memory used by a bitmap. Allegro game programming library.

## NAME

lock\_bitmap - Locks the memory used by a bitmap. Allegro game programming library.

## SYNOPSIS

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

**void lock\_bitmap(BITMAP \*bitmap);**

## DESCRIPTION

Under DOS, locks all the memory used by a bitmap. You don't normally need to call this function unless you are doing very weird things in your program.
