Share via


CMConvertIndexToColorName

The CMConvertIndexToColorName transforms indices in a color space to an array of names in a named color space.

BOOL WINAPI CMConvertIndexToColorName(
  HPROFILE hProfile,PDWORDpaIndex,
  PCOLOR_NAME paColorName,
  DWORDdwCount);

Parameters

  • hProfile
    The handle to a color space profile.
  • paIndex
    Pointer to an array of color-space index numbers.
  • paColorName
    Pointer to an array of color name structures.
  • dwCount
    The number of indices to convert.

Return Values

If this conversion function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE. When this occurs, the CMM should call SetLastError to set the last error to a valid error value defined in Winerror.h.

Remarks

This function is required in the default CMM. It is optional for all other CMMs.

Requirements

**  Windows NT/2000/XP/Vista:** Included in Windows 2000 and later.
**  Windows 95/98/Me:** Included in Windows 98 and later.
**  Header:** Declared in Wingdi.h.
**  Library:** Use Gdi32.lib.

See Also

Basic Color Management Concepts, Functions