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

# destroy\_bitmap(3alleg)

Destroys any type of created bitmap. Allegro game programming library.

## NAME

destroy\_bitmap - Destroys any type of created bitmap. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

Destroys a memory bitmap, sub-bitmap, video memory bitmap, or system  bitmap when you are finished with it. If you pass a NULL pointer this function won't do anything. See above for the restrictions as to when you are allowed to destroy the various types of bitmaps.

The bitmap must not have a mouse cursor shown on it at the time it is destroyed.

## SEE ALSO

[**create\_bitmap**(3alleg)](/create_bitmap/3alleg.md), [**load\_bitmap**(3alleg)](/load_bitmap/3alleg.md), [**show\_mouse**(3alleg)](/show_mouse/3alleg.md)
