Esri Business Analyst Server API for Silverlight 2.2 Reference
GetColorByValue Method
See Also  Send Feedback
ESRI.ArcGIS.Client.BACore.ThematicMapping Namespace > ColorRamp Class : GetColorByValue Method

value
A value between 0 and 1 specifying a position of color in the color ramp gradient.

Glossary Item Box

Gets a gradient color by value in the range [0, 1].

Syntax

 
Visual Basic (Declaration)
C#
 
 

Parameters

value
A value between 0 and 1 specifying a position of color in the color ramp gradient.

Return Value

Required color.

Remarks

The color for the given value is calculated using a linear gradient interpolation between discrete colors of the color ramp posed at the nodes xi=i/(rampColorsCount-1).

The input value should belong to [0, 1]. If the value is negative, the first color is returned. If the value is greater that 1, the last color is returned.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010-2012 Esri, Inc. All Rights Reserved.