XLATEOBJ_iXlate
TOC
Collapse the table of content
Expand the table of content

XLATEOBJ_iXlate function

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

Syntax


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

Target platform

Universal

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

XLATEOBJ

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft