---
name: "ggiGetPixelFormat"
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/ggiGetPixelFormat/3ggi"
---

# ggiGetPixelFormat(3ggi)

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\>**

**ggi\_pixelformat \*ggiGetPixelFormat(ggi\_visual\_t** *vis***);** .SH "DESCRIPTION"

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

## RETURN VALUE

Returns a pointer to the **ggi\_pixelformat** structure.

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

## STRUCTURES

See *ggi/ggi.h* or \[XRef to GGI-PIXELFORMAT\] for details on the structure that is returned.
