Beispiel #1
0
 /// <summary>
 /// Default constructor for enumerator.
 /// </summary>
 /// <param name="collection">Instance of the collection to enumerate.</param>
 internal ColorRampEnumerator(ColorRamp collection)
 {
     mIndex = -1;
     mCollection = collection;
 }
Beispiel #2
0
        ColorRamp GetColorRamp()
        {
            ColorRamp result = new ColorRamp();

            //Red - Green - Blue
            //result.Add(Colors.Red  , 0.0);
            //result.Add(Colors.Green, 0.5);
            //result.Add(Colors.Blue , 1.0);

            //White - Red - Green - Blue
            result.Add(Colors.White, 0.0);
            result.Add(Colors.Red, 1.0 / 3.0);
            result.Add(Colors.Green, 2.0 / 3.0);
            result.Add(Colors.Blue, 1.0);

            return result;
        }
Beispiel #3
0
 /// <summary>
 /// Default constructor for enumerator.
 /// </summary>
 /// <param name="collection">Instance of the collection to enumerate.</param>
 internal ColorRampEnumerator(ColorRamp collection)
 {
     mIndex      = -1;
     mCollection = collection;
 }