Class CIMHSLColor
Represents a color defined by hue, saturation, and lightness.
public class CIMHSLColor : CIMColor
- Inheritance
-
CIMHSLColor
- Inherited Members
Remarks
Transforms RGB values by defining the hue, saturation, and lightness of the color. The three values do not represent individual color channels but the HSL coordinates used to define the color in the RGB color model.
Constructors
CIMHSLColor()
public CIMHSLColor()
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMHSLColor with a specified state from a JSON encoding.
public static CIMHSLColor FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMHSLColor state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMHSLColor and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.