---
name: "ggiGetPixel"
section: "3ggi"
platform: "linux"
package: "libggi2-dev"
version: "1:2.0.1-2"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/ggiDrawPixel/3ggi"
---

# ggiGetPixel(3ggi)

Draw, put, and get a single pixel from a visual

Part of [ggiDrawPixel(3ggi)](/ggiDrawPixel/3ggi.md).

## NAME

ggiDrawPixel, ggiPutPixel, ggiGetPixel - Draw, put, and get a single pixel from a visual

## SYNOPSIS

**#include \<ggi/ggi.h\>**

**int ggiDrawPixel(ggi\_visual\_t** *vis***,**  **int** *x***,**  **int** *y***);**

**int ggiPutPixel(ggi\_visual\_t** *vis***,**  **int** *x***,**  **int** *y***,**  **ggi\_pixel** *col***);**

**int ggiGetPixel(ggi\_visual\_t** *vis***,**  **int** *x***,**  **int** *y***,**  **ggi\_pixel \****col***);** .SH "DESCRIPTION"

Draw, put, or get a single pixelvalue at (*x*,*y*).

## RETURN VALUE

All three functions return 0 to indicate success.
