API Reference > OdCm Classes > OdCmColor Class > OdCmColor Methods > OdCmColor::setRGB Method
OdCmColor::setRGB Method
Syntax
C++
virtual void setRGB(OdUInt8 red, OdUInt8 green, OdUInt8 blue);
Parameters 
Description 
OdUInt8 red 
[in] Red component value.  
OdUInt8 green 
[in] Green component value.  
OdUInt8 blue 
[in] Blue component value. 

Sets color using RGB values. Color method is set to "kByColor". 

 

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