---
name: "bitmap.c"
section: "3caca"
platform: "linux"
package: "libcaca-dev"
version: "0.9-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/bitmap.c"
---

# bitmap.c(3caca)

Bitmap blitting.

## NAME

bitmap.c - Bitmap blitting.

## SYNOPSIS

### Functions

caca\_bitmap \* **caca\_create\_bitmap** (unsigned int bpp, unsigned int w, unsigned int h, unsigned int pitch, unsigned int rmask, unsigned int gmask, unsigned int bmask, unsigned int amask)\
 *Create an internal bitmap object.*  void **caca\_set\_bitmap\_palette** (struct caca\_bitmap \*bitmap, unsigned int red\[\], unsigned int green\[\], unsigned int blue\[\], unsigned int alpha\[\])\
 *Set the palette of an 8bpp bitmap object.*  void **caca\_free\_bitmap** (struct caca\_bitmap \*bitmap)\
 *Free the memory associated with a bitmap.*  void **caca\_draw\_bitmap** (int x1, int y1, int x2, int y2, struct caca\_bitmap const \*bitmap, void \*pixels)\
 *Draw a bitmap on the screen.*

## Detailed Description

**Version:**

$Id: **bitmap.c** 248 2004-01-14 10:34:20Z sam $

**Author:**

Sam Hocevar \<sam@zoy.org\>

This file contains bitmap blitting functions.

## Author

Generated automatically by Doxygen for libcaca from the source code.
