Delen via


HslColor.ToRgbColor Method

Converts an HSL color representation to an RGB color representation.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.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

See Also

Reference

HslColor Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace