示例#1
0
        public static IColorRamp CreateColorRamp()
        {
            IAlgorithmicColorRamp algorithmicColorRampClass = new AlgorithmicColorRamp();
            IRgbColor             rgbColor  = ColorManage.CreatColor(56, 168, 0) as IRgbColor;
            IRgbColor             rgbColor1 = ColorManage.CreatColor(255, 0, 0) as IRgbColor;

            algorithmicColorRampClass.FromColor = rgbColor;
            algorithmicColorRampClass.ToColor   = rgbColor1;
            return(algorithmicColorRampClass);
        }
示例#2
0
        public static IAlgorithmicColorRamp CreateColorRamp(esriColorRampAlgorithm esriColorRampAlgorithm_0)
        {
            IAlgorithmicColorRamp algorithmicColorRampClass = new AlgorithmicColorRamp()
            {
                Algorithm = esriColorRampAlgorithm_0
            };
            IRgbColor rgbColor = ColorManage.CreatColor(255, 200, 200) as IRgbColor;

            algorithmicColorRampClass.FromColor = ColorManage.CreatColor(255, 0, 0) as IRgbColor;
            algorithmicColorRampClass.ToColor   = rgbColor;
            return(algorithmicColorRampClass);
        }