SharpMap.Rendering.Thematics.ColorBlend.TwoColors C# (CSharp) Method

TwoColors() public static method

Creates a linear gradient scale from two colors
public static TwoColors ( System fromColor, System toColor ) : ColorBlend
fromColor System
toColor System
return ColorBlend
        public static ColorBlend TwoColors(System.Drawing.Color fromColor, System.Drawing.Color toColor)
        {
            return new ColorBlend(new Color[] { fromColor, toColor }, new float[] { 0f, 1f });
        }