public static CreateSteppedGradientBrush ( IList |
||
colors | IList |
The colors. |
horizontal | bool | if set to |
return | System.Windows.Media.LinearGradientBrush |
/// <summary> /// Initializes a new instance of the <see cref="SlopeTexture"/> class. /// </summary> /// <param name="gradientSteps"> /// The gradient steps. /// </param> public SlopeTexture(int gradientSteps) { if (gradientSteps > 0) { this.Brush = BrushHelper.CreateSteppedGradientBrush(GradientBrushes.BlueWhiteRed, gradientSteps); } else { this.Brush = GradientBrushes.BlueWhiteRed; } }
/// <summary> /// Initializes a new instance of the <see cref="SlopeDirectionTexture"/> class. /// </summary> /// <param name="gradientSteps"> /// The gradient steps. /// </param> public SlopeDirectionTexture(int gradientSteps) { if (gradientSteps > 0) { this.Brush = BrushHelper.CreateSteppedGradientBrush(GradientBrushes.Hue, gradientSteps); } else { this.Brush = GradientBrushes.Hue; } }