IDeviceModelPlugIn::DeviceToColorimetricColors method (wcsplugin.h)

Returns the appropriate XYZ colors in response to the specified number of colors, channels, device colors and the proprietary plug-in algorithms.

Syntax

HRESULT DeviceToColorimetricColors(
  [in]  UINT        cColors,
  [in]  UINT        cChannels,
  [in]  const FLOAT *pDeviceValues,
  [out] XYZColorF   *pXYZColors
);

Parameters

[in] cColors

The number of colors in the pXYZColors and pDeviceValues arrays.

[in] cChannels

The number of color channels in the pDeviceValues arrays.

[in] pDeviceValues

A pointer to the array of outgoing XYZColors.

[out] pXYZColors

A pointer to the array of incoming device colors to convert to XYZColors.

Return value

If this function succeeds, the return value is S_OK.

If this function fails, the return value is E_FAIL. For extended error information, call GetLastError.

Remarks

If cColors or cChannels is zero, the return value is E_FAIL.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wcsplugin.h

See also