Previous Next

XLATEOBJ_iXlate

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

ULONG
  XLATEOBJ_iXlate(
    IN XLATEOBJ  *pxlo,
    IN 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.

Headers

Declared in winddi.h. Include winddi.h.

See Also

XLATEOBJ