---
name: "DescribePixelFormat"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/DescribePixelFormat"
---

# DescribePixelFormat(3w)

## NAME

**DescribePixelFormat** (GDI32.@)

## SYNOPSIS

INT DescribePixelFormat\
  (\
   HDC                     *hdc*,\
   INT                     *iPixelFormat*,\
   UINT                    *nBytes*,\
   LPPIXELFORMATDESCRIPTOR *ppfd*\
  )

## DESCRIPTION

Gets information about pixel format from **DC**.

## PARAMS

*hdc* **\[In\]**  Device context.

*iPixelFormat* **\[In\]**  Pixel format selector.

*nBytes* **\[In\]**  Size of buffer.

*ppfd* **\[Out\]**  Pointer to structure to receive pixel format data.

## RETURNS

**Success:** Maximum pixel format index of the device context

**Failure:** **0**

## IMPLEMENTATION

Declared in **"wingdi.h"**.

Implemented in **"dlls/gdi32/painting.c"**.

Debug channel **"gdi"**.
