API Reference > OdDg Classes > OdDgColorTable Class > OdDgColorTable Methods > OdDgColorTable::getColorIndexByRGB Method
OdDgColorTable::getColorIndexByRGB Method
Syntax
C++
static OdUInt32 getColorIndexByRGB(OdDgDatabase* pDb, ODCOLORREF rgbColor);

it tries to find the given RGB color within existing color tables (or add a new color to the extended color table)

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