---
name: "ggiGetPixelFormat"
section: "3"
platform: "linux"
package: "libggi2-dev"
version: "1:2.2.2-5"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ggiGetPixelFormat"
---

# ggiGetPixelFormat(3)

Get a structure describing the format of a pixelvalue from a visual

## NAME

**ggiGetPixelFormat** - Get a structure describing the format of a pixelvalue from a visual

## SYNOPSIS

```
#include <ggi/ggi.h>
const ggi_pixelformat *ggiGetPixelFormat(ggi_visual_t vis);
```

## DESCRIPTION

This function obtains the default pixel format for the given visual.

## RETURN VALUE

Returns a pointer to the **[ggi\_pixelformat(3)](/ggi_pixelformat/3.md)** structure.

**Important:** Modifying the structure returned is not allowed.  Do **not** attempt to free the pointer returned.

## SEE ALSO

`ggiMapColor(3)`, `ggi_pixelformat(3)`
