API Reference > OdCm Classes > OdCmColor Class > OdCmColor Operators > == Operator > OdCmColor::== Operator (OdCmColorBase&)
OdCmColor::== Operator (OdCmColorBase&)
Syntax
C++
bool operator ==(const OdCmColorBase& color) const;
Parameters 
Description 
const OdCmColorBase& color 
[in] Color as OdCmColorBase object.  

true if the objects are equal, false - otherwise.

Compares an OdCmColor object and OdCmColorBase object using their integer values together with their color names and returns true when their values are equal, or false when their values are not equal. For comparison the OdCmColorBase object is converted to OdCmColor. 

 

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