Export (0) Print
Expand All
Expand Minimize

CMConvertColorNameToIndex Function

The CMConvertColorNameToIndex function converts color names in a named color space to index numbers in a color profile.

Syntax

BOOL WINAPI CMConvertColorNameToIndex(
    HPROFILE hProfile,
    PCOLOR_NAME paColorName,
    PDWORD paIndex,
    DWORD dwCount
);

Parameters

hProfile

The handle to a named color profile.

paColorName

Pointer to an array of color name structures.

paIndex

Pointer to an array of DWORDS that this function fills with the indices.

dwCount

The number of color names to convert.

Return Value

If this function succeeds with the conversion, 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

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h

Library

Gdi32.lib

DLL

Icm32.dll

See Also

Basic Color Management Concepts
Functions

 

 

Send comments about this topic to Microsoft

Build date: 11/16/2010

Community Additions

ADD
Show:
© 2014 Microsoft