HslColor.FromColor(Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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