HslColor Class

 

HueSatLumColor represents colors by their Hue-Saturation-Luminosity value rather than the traditional RGB value. This class provides conversion methods to go back and forth between the HSL and RGB color spaces.

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

System::Object
  Microsoft.VisualStudio.Modeling.Diagrams::HslColor

[SerializableAttribute]
[TypeConverterAttribute((HslColorConverter^::typeid))]
public ref class HslColor 

NameDescription
System_CAPS_pubmethodHslColor()

Default constructor creates an empty instance of the class.

System_CAPS_pubmethodHslColor(Int32, Int32, Int32)

Creates instance of the class with the specified hue, saturation, and luminosity.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticBlack

Pre-defined color.

System_CAPS_pubpropertyHue

Gets or sets the Hue property.

System_CAPS_pubpropertyLuminosity

Gets or sets the Luminosity property.

System_CAPS_pubpropertySaturation

Gets or sets the Saturation property.

System_CAPS_pubpropertySystem_CAPS_staticWhite

Pre-defined color.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFromRgbColor(Color)

Converts an RGB color representation to an HSL color representation.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToRgbColor()

Converts an HSL color representation to an RGB color representation.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: