HslColor.ToRgbColor Method
Converts an HSL color representation to an RGB color representation.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Public Function ToRgbColor As Color
public Color ToRgbColor()
public:
Color ToRgbColor()
member ToRgbColor : unit -> Color
public function ToRgbColor() : Color
Return Value
Type: System.Drawing.Color
Remarks
The algorithm implemented is from the following KnowledgeBase article: https://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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.