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

# CreateHalftonePalette(3w)

## NAME

**CreateHalftonePalette** (GDI32.@)

## SYNOPSIS

HPALETTE CreateHalftonePalette\
  (\
   HDC *hdc*\
  )

## PARAMS

*hdc* **\[In\]**  Handle to device context.

## DESCRIPTION

Creates a halftone palette.

## RETURNS

**Success:** Handle to logical halftone palette

**Failure:** **0.**

**FIXME:** This simply creates the halftone palette derived from running tests on a Windows(tm) **NT** machine. This is assuming a color depth of greater that **256** color. On a **256** color device the halftone palette will be different and this function will be incorrect

## IMPLEMENTATION

Declared in **"gdiplusflat.h"**.

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

Debug channel **"palette"**.
