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

Set the colors and interpolation values describing the gradient fill. 

 

count must be two for the current implementation.

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