API Reference > OdDb Classes > OdDbHatch Class > OdDbHatch Methods > OdDbHatch::setGradientColors Method
OdDbHatch::setGradientColors Method
Syntax
C++
void setGradientColors(OdUInt32 count, const OdCmColor* colors, const double* values);
Parameters 
Description 
const OdCmColor* colors 
[in] Array of colors defining the gradient.  
const double* values 
[in] Array of interpolation values for the gradient. 

Returns the colors and interpolation values describing the gradient fill for this Hatch entity. 

 

count must be two for the current implementation.

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