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

Sets the red, green, and blue color components and the color method to byColor for the database color object. 

 

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