HslColor::FromRgbColor Method (Color)

 

Converts an RGB color representation to an HSL color representation.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public:
static HslColor^ FromRgbColor(
	Color color
)

Parameters

color
Type: System.Drawing::Color

RGB color to convert to HSL representation.

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.

Return to top
Show: