Version

GetAltitudeColor Method (Heatmap3DLayer)

Calculates the blended iso-color in the spectrum appropriate for any Y-data value (altitude or temperature) on the surface.
Syntax
'Declaration
 
Protected Function GetAltitudeColor( _
   ByVal startColor As Color, _
   ByVal endColor As Color, _
   ByVal val As Double _
) As Color
protected Color GetAltitudeColor( 
   Color startColor,
   Color endColor,
   double val
)

Parameters

startColor
The starting color of the linear spectrum.
endColor
The ending color of the linear spectrum.
val
The altitude or temperature (Y data value).

Return Value

A blended color.
Remarks

The same blended iso-color is always returned for a given data value, as long as the Color Model has remained constant.

Blending is performed through linear interpolation equally across the Red, Green and Blue portions of the spectrum. It is not possible for the color returned to vary in fewer than all three primary colors unless the value of the primary color is identical in startColor and endColor.

Any opacity (or alpha) value in the supplied colors is ignored. Instead, the AlphaLevel of the chart's ColorAppearance is applied.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also