Ejemplo n.º 1
0
        /// <summary>
        /// Add three color scale.
        /// </summary>
        /// <param name="minimum"></param>
        /// <param name="midpoint"></param>
        /// <param name="maximum"></param>
        /// <param name="centerPercentage"></param>
        /// <returns></returns>
        public CFRule AddColorScale(Color minimum, Color midpoint, Color maximum, int centerPercentage = 50)
        {
            CFRule rule = new CFRule(CFType.ColorScale);

            rule.ColorScale = ColorScale.TwoColor(minimum, maximum);
            AddRule(rule);
            return(rule);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add two color scale.
        /// </summary>
        /// <param name="colorScale"></param>
        /// <returns></returns>
        public CFRule AddColorScale(Color minimum, Color maximum)
        {
            CFRule rule = new CFRule(CFType.ColorScale);

            rule.ColorScale = ColorScale.TwoColor(minimum, maximum);
            AddRule(rule);
            return(rule);
        }