Class CIMRGBColor
Represents a color in the RGB color model.
public class CIMRGBColor : CIMColor
- Inheritance
-
CIMRGBColor
- Inherited Members
Remarks
A color in the RGB (red, green, blue) color model. RGB is an additive, or light-emissive model based on red, green, and blue values.
Constructors
CIMRGBColor()
public CIMRGBColor()
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMRGBColor with a specified state from a JSON encoding.
public static CIMRGBColor FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMRGBColor state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMRGBColor and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.