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); }
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); }