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

# GetPixelFormat(3w)

## NAME

**GetPixelFormat** (GDI32.@)

## SYNOPSIS

INT GetPixelFormat\
  (\
   HDC *hdc*\
  )

## DESCRIPTION

Gets index of pixel format of **DC**.

## PARAMS

*hdc* **\[In\]**  Device context whose pixel format index is sought.

## RETURNS

**Success:** Currently selected pixel format

**Failure:** **0**

## IMPLEMENTATION

Declared in **"ddraw.h"**.

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

Debug channel **"gdi"**.
