HslColor::FromRgbColor Method (Color)
Visual Studio 2015
Converts an RGB color representation to an HSL color representation.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Parameters
- color
-
Type:
System.Drawing::Color
RGB color to convert to HSL representation.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams::HslColor^The algorithm implemented is from the following KnowledgeBase article: http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b29240, and from "Computer Graphics: Principles and Practices" by Foley, vanDam, et.al., pp. 592-596.
Show: