RGBtoHSL(Int32,Int32,Int32) Method


Red value, must be in [0,255].
Green value, must be in [0,255].
Blue value, must be in [0,255].
Converts RGB to HSL.

Syntax

'Declaration
 
Public Overloads Shared Function RGBtoHSL( _
   ByVal red As Integer, _
   ByVal green As Integer, _
   ByVal blue As Integer _
) As HSL
public static HSL RGBtoHSL( 
   int red,
   int green,
   int blue
)

Parameters

red
Red value, must be in [0,255].
green
Green value, must be in [0,255].
blue
Blue value, must be in [0,255].

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