API Reference > Other Classes > OdResBuf Class > OdResBuf Methods > OdResBuf::getColor Method
OdResBuf::getColor Method
Syntax
C++
const OdCmColor& getColor() const;

Returns the data content of the ResBuf object as a Color instance.

This method generates the OdError_InvalidResBuf exception when the stored group code is not set to kRtColor. The OdDxfCode::_getType() method returns Unknown type for it.

Example of Entering and Displaying Tagged Data 

Getting and Setting Specific Data (color 

Determining the Data Type by Group Code 

Colors and Transparencies 

OdResBuf::setColor(), OdResBuf::restype() methods

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