Version

Data2Color Method (IProvideMeasurements)

Provides a color within a range of colors, corresponding to a data value within a range of values.
Syntax
'Declaration
 
Function Data2Color( _
   ByVal startColor As Color, _
   ByVal endColor As Color, _
   ByVal DataMax As Double, _
   ByVal DataMin As Double, _
   ByVal val As Double _
) As Color
Color Data2Color( 
   Color startColor,
   Color endColor,
   double DataMax,
   double DataMin,
   double val
)

Parameters

startColor
The start of the color range.
endColor
The end of the color range.
DataMax
The maximum of the data range.
DataMin
The minimum of the data range.
val
The data value to plot as a color.

Return Value

A color at distances from the startColor and endColor equivalent to the given data value in relation to the specified minimum and maximum.
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