API Reference > OdDb Classes > OdDbColor Class > OdDbColor Methods > OdDbColor::setColor Method
OdDbColor::setColor Method
Syntax
C++
void setColor(const OdCmColor& cmColor);
Parameters 
Description 
const OdCmColor& cmColor 
[in] A reference to the color instance. 

Sets the unnamed color and named color instance for the database color object. 

 

Example of Working with the Color Dictionary Object 

Example of Entering and Displaying for Color Objects 

Working with Colors 

OdCmColor class

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