Class CIMMultipartColorRamp
Represents a multipart color ramp scheme.
public class CIMMultipartColorRamp : CIMColorRamp
- Inheritance
-
CIMMultipartColorRamp
- Inherited Members
Remarks
A color ramp scheme defined by combining two or more continuous, discrete, or random ramps.
Constructors
CIMMultipartColorRamp()
public CIMMultipartColorRamp()
Properties
ColorRamps
Gets or sets the ordered list of color ramps (also known as schemes) that are combined to build the multipart ramp. Typically these are continuous color ramps.
public CIMColorRamp[] ColorRamps { get; set; }
Property Value
Weights
Gets or sets the proportional weight for each color ramp (also known as a color scheme) that make up the multipart ramp. This allows for ramp to ramp transition at specific weight points.
public double[] Weights { get; set; }
Property Value
- double[]
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMMultipartColorRamp with a specified state from a JSON encoding.
public static CIMMultipartColorRamp FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMMultipartColorRamp state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMMultipartColorRamp and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.