Export (0) Print
Expand All
Expand Minimize

CMTranslateRGB function

The CMTranslateRGB function translates an application-supplied RGBQuad into the device color space.

Syntax


BOOL WINAPI CMTranslateRGB(
  HCMTRANSFORM hcmTransform,
  COLORREF ColorRef,
  LPCOLORREF lpColorRef,
  DWORD dwFlags
);

Parameters

hcmTransform

Specifies the transform to be used.

ColorRef

The RGBQuad to translate.

lpColorRef

Points to a buffer in which to place the translation.

dwFlags

Specifies how the transform should be used to make the translation. This parameter can take one of the following meanings.

ValueMeaning
CMS_FORWARD

Use forward transform

CMS_BACKWARD

Use reverse transform

 

Return value

If this function succeeds, the return value is TRUE.

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

Remarks

Every CMM is required to export this function.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h

Library

Gdi32.lib

DLL

Icm32.dll

See also

Basic Color Management Concepts
Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft