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

# SetPixelFormat(3w)

## NAME

**SetPixelFormat** (GDI32.@)

## SYNOPSIS

BOOL SetPixelFormat\
  (\
   HDC                          *hdc*,\
   INT                          *iPixelFormat*,\
   const PIXELFORMATDESCRIPTOR\* *ppfd*\
  )

## DESCRIPTION

Sets pixel format of device context.

## PARAMS

*hdc* **\[In\]**  Device context to search for best pixel match.

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

*ppfd* **\[In\]**  Pixel format for which a match is sought.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

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

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

Debug channel **"gdi"**.
