GetColorDistance(Double,Double,Double,Double,Double,Double) Method

Kaliko Image Library

Kaliko.ImageLibrary
GetColorDistance(Double,Double,Double,Double,Double,Double) Method





First color red component.
First color green component.
First color blue component.
Second color red component.
Second color green component.
Second color blue component.
Gets the "distance" between two colors. RGB colors must be normalized (eg. values in [0.0, 1.0]).
Syntax
'Declaration
 
Public Overloads Shared Function GetColorDistance( _
   ByVal r1 As System.Double, _
   ByVal g1 As System.Double, _
   ByVal b1 As System.Double, _
   ByVal r2 As System.Double, _
   ByVal g2 As System.Double, _
   ByVal b2 As System.Double _
) As System.Double
'Usage
 
Dim r1 As System.Double
Dim g1 As System.Double
Dim b1 As System.Double
Dim r2 As System.Double
Dim g2 As System.Double
Dim b2 As System.Double
Dim value As System.Double
 
value = ColorSpaceHelper.GetColorDistance(r1, g1, b1, r2, g2, b2)
public static System.double GetColorDistance( 
   System.double r1,
   System.double g1,
   System.double b1,
   System.double r2,
   System.double g2,
   System.double b2
)
public function GetColorDistance( 
    r1: System.Double;
    g1: System.Double;
    b1: System.Double;
    r2: System.Double;
    g2: System.Double;
    b2: System.Double
): System.Double; static; 
public static function GetColorDistance( 
   r1 : System.double,
   g1 : System.double,
   b1 : System.double,
   r2 : System.double,
   g2 : System.double,
   b2 : System.double
) : System.double;
public: static System.double GetColorDistance( 
   System.double r1,
   System.double g1,
   System.double b1,
   System.double r2,
   System.double g2,
   System.double b2
) 
public:
static System.double GetColorDistance( 
   System.double r1,
   System.double g1,
   System.double b1,
   System.double r2,
   System.double g2,
   System.double b2
) 

Parameters

r1
First color red component.
g1
First color green component.
b1
First color blue component.
r2
Second color red component.
g2
Second color green component.
b2
Second color blue component.
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

This documentation was created using Document! X from Innovasys