BCGControlBar Pro for MFC
void CBCGPChartSurfaceSeries::SetColorMapCount ( int  nCount = 16)

Sets number of colors in the color map (the same as number of levels).

Call this method to define the number of colors in the color map. A surface is split to levels according to the number of colors.

For example, if nCount is 16, a surface will be split to 16 levels. You may see fewer levels on the actual diagram, especially if you call SetLevelRangeMode() with LRM_CUSTOM and specify range much larger than minimum and maximum values of the current surface.

Parameters
nCountSpecifies the new number of colors.