Share via


HslColor.FromColor(Color) Method

Definition

Converts a Color value to an HslColor. The algorithm was written based on pseudocode available on http://en.wikipedia.org/wiki/HSL_and_HSV.

public:
 static Microsoft::VisualStudio::Imaging::HslColor FromColor(System::Windows::Media::Color color);
public static Microsoft.VisualStudio.Imaging.HslColor FromColor (System.Windows.Media.Color color);
static member FromColor : System.Windows.Media.Color -> Microsoft.VisualStudio.Imaging.HslColor
Public Shared Function FromColor (color As Color) As HslColor

Parameters

color
Color

The color to convert

Returns

The converted color

Applies to