---
name: "al_get_pixel"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_pixel"
---

# al\_get\_pixel(3)

Allegro 5 API

## NAME

al\_get\_pixel - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_COLOR al_get_pixel(ALLEGRO_BITMAP *bitmap, int x, int y)
  ```

## DESCRIPTION

Get a pixel’s color value from the specified bitmap. This operation is slow on non-memory bitmaps. Consider locking the bitmap if you are going to use this function multiple times on the same bitmap.

## SEE ALSO

[ALLEGRO\_COLOR(3)](/ALLEGRO_COLOR/3.md), [al\_put\_pixel(3)](/al_put_pixel/3.md), [al\_lock\_bitmap(3)](/al_lock_bitmap/3.md)
