GetColorDistance(Double[],Double[]) Method
From Kaliko Image Library
Kaliko.ImageLibrary
GetColorDistance(Double[],Double[]) Method
First color [r,g,b]
Second color [r,g,b]
Gets the "distance" between two colors. RGB colors must be normalized (eg. values in [0.0, 1.0]).
Syntax
'DeclarationPublic Overloads Shared Function GetColorDistance( _ ByVal color1() As System.Double, _ ByVal color2() As System.Double _ ) As System.Double
'UsageDim color1() As System.Double Dim color2() As System.Double Dim value As System.Double value = ColorSpaceHelper.GetColorDistance(color1, color2)
public function GetColorDistance( color1: System.Doublearray of; color2: System.Doublearray of ): System.Double; static;
Parameters
- color1
- First color [r,g,b]
- color2
- Second color [r,g,b]
Requirements
Target Platforms: 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