XLATEOBJ_iXlate

ULONG XLATEOBJ_iXlate(

    IN XLATEOBJ  *pxlo,
   IN ULONG  iColor
  );

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

Parameters

pxlo

Points 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.