Class Hierarchy
AcCmEntityColor
C++
class AcCmEntityColor;
File
dbcolor.h
Description
Objects of this class store a color method and a color, which, depending on the color method, may be a Red/Green/Blue (RGB) value, an AutoCAD Color Index (ACI) value, a layer index, or a pen index. The color is stored in the AcCmEntityColor object's mRGBM member, defined as:
union RGBM { Adesk::UInt32 whole; // All four bytes. Adesk::Int16 indirect; // Two low bytes for index. struct { Adesk::UInt8 blue, // Single byte access. green, red, colorMethod; }; }; RGBM mRGBM;
The enumerated type ColorMethod specifies how the color is stored.
Links
AcCmEntityColor Constructor, AcCmEntityColor Enumerations, AcCmEntityColor Methods, AcCmEntityColor Operators
See Also
AcCmColor, AcCmComplexColor