API Reference > OdDb Classes > OdDbHatch Class > OdDbHatch Methods > OdDbHatch::setShadeTintValueAndColor2 Method
OdDbHatch::setShadeTintValueAndColor2 Method
Syntax
C++
OdResult setShadeTintValueAndColor2(double value);
Parameters 
Description 
double value 
[in] Luminance value in the range from 0.0 to 1.0.
 

eOk if successful. eInvalidContext if single color mode is false or gradient colors list is empty or hatch object type not kGradientObject. eInvalidInput if the luminance value is out of range.

Calculate second hatch gradient color from first color with applied luminance value. 

 

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