Class CIMGrayColor
Represents a grayscale color defined by lightness.
public class CIMGrayColor : CIMColor
- Inheritance
-
CIMGrayColor
- Inherited Members
Remarks
A color in a grayscale model, where the value of lightness is defined.
Constructors
CIMGrayColor()
public CIMGrayColor()
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMGrayColor with a specified state from a JSON encoding.
public static CIMGrayColor FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMGrayColor state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMGrayColor and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.