GetNearestPaletteIndex(3w)

GetNearestPaletteIndex3w

Usage

UINT GetNearestPaletteIndex
(
HPALETTE hpalette,
COLORREF color
)

Params

hpalette [In] Handle of logical color palette.

color [In] Color to be matched.

Overview

Gets palette index for color.

Notes

Should index be initialized to CLR_INVALID instead of 0?.

Returns

Success: Index of entry in logical palette

Failure: CLR_INVALID

Implementation

Declared in "wingdi.h".

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

Debug channel "palette".

Releases

5 releases since Debian 2.1 (Slink); the text changed 4 times.

  1. 2.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.