API Reference > OdCm Classes > OdCmEntityColor Class > OdCmEntityColor Methods > OdCmEntityColor::lookUpACI Method
OdCmEntityColor::lookUpACI Method
Syntax
C++
static OdUInt8 lookUpACI(OdUInt8 red, OdUInt8 green, OdUInt8 blue);
Parameters 
Description 
OdUInt8 red 
[in] Red component an an integer value in the range from 0 to 255.  
OdUInt8 green 
[in] Green component an an integer value in the range from 0 to 255.  
OdUInt8 blue 
[in] Blue component an an integer value in the range from 0 to 255. 

Converts the RGB value specified by the red, green, and blue components to an ACI value. 

 

For converting, this method uses the default palette specified by the mLUT static array and returns the color index without color method as an integer value in the range from 0 to 257.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.