Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CMCreateMultiProfileTransform function

The CMCreateMultiProfileTransform function accepts an array of profiles or a single device link profile and creates a color transform. This transform is a mapping from the color space specified by the first profile to that of the second profile and so on to the last one.

Syntax


HCMTRANSFORM CMCreateMultiProfileTransform(
   LPHPROFILE lpahProfiles,
   DWORD      nProfiles,
   PDWORD     padwIntents,
   DWORD      nIntents,
   DWORD      dwFlags
);

Parameters

lpahProfiles

Points to an array of profile handles.

nProfiles

Specifies the number of profiles in the array.

padwIntents

Points to an array of rendering intents. Each rendering intent is represented by one of the following values:

INTENT_PERCEPTUAL

 
INTENT_SATURATION
 
INTENT_RELATIVE_COLORIMETRIC
 
INTENT_ABSOLUTE_COLORIMETRIC

For more information, see Rendering Intents.

nIntents

Specifies the number of intents in the intent array. Can be 1, or the same value as nProfiles.

dwFlags

Specifies flags to used control creation of the transform. For details, see CMM Transform Creation Flags.

Return value

If this function succeeds, the return value is a color transform in the range 256 to 65,535. Since only the low WORD of the transform is retained, valid transforms cannot exceed this range.

If this function fails, the return value is an error code having a value less than 256. When the return value is less than 256, signaling an error, the CMM should use SetLastError to set the last error to a valid error value as defined in Winerror.h.

Remarks

Every CMM is required to export this function.

The array of intents specifies how profiles should be combined. The nth intent is used for combining the nth profile in the array. If only one intent is specified, it is used for the first profile, and all other profiles are combined using Match intent.

The profile handles used to create the color transform can be closed after the call to CMCreateMultiProfileTransform completes.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h

Library

Icm32.lib

DLL

Icm32.dll

See also

Basic Color Management Concepts
Functions

 

 

Show: