XLATEOBJ_iXlate function (winddi.h)

The XLATEOBJ_iXlate function translates a color index of the source palette to the closest index in the destination palette.

Syntax

ENGAPI ULONG XLATEOBJ_iXlate(
  XLATEOBJ *pxlo,
  ULONG    iColor
);

Parameters

pxlo

Pointer to a XLATEOBJ structure that defines the source palette.

iColor

Specifies the color index to be translated.

Return value

The return value is an index into the destination palette if the function is successful. If the function fails, -1 is returned.

Requirements

Requirement Value
Minimum supported client Available in Windows 2000 and later versions of the Windows operating systems.
Target Platform Universal
Header winddi.h (include Winddi.h)
Library Win32k.lib
DLL Win32k.sys

See also

XLATEOBJ