Version

Data2Color Method (LogMeasurements)

Maps a location on a color line.
Syntax
'Declaration
 
Public Function Data2Color( _
   ByVal startColor As Color, _
   ByVal endColor As Color, _
   ByVal DataMax As Double, _
   ByVal DataMin As Double, _
   ByVal val As Double _
) As Color
public Color Data2Color( 
   Color startColor,
   Color endColor,
   double DataMax,
   double DataMin,
   double val
)

Parameters

startColor
Start color.
endColor
End color.
DataMax
Data maximum.
DataMin
Data minimum.
val
Value to map.

Return Value

A color value mapped at "val" given a color line with the specified parameters.
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