// ReSharper disable MemberCanBePrivate.Global // ReSharper disable AutoPropertyCanBeMadeGetOnly.Global using System.Drawing; namespace CUE.NET.Brushes { /// /// Represents a brush drawing only a single color. /// public class SolidColorBrush : AbstractBrush { #region Properties & Fields /// /// Gets or sets the color drawn by the brush. /// public Color Color { get; set; } #endregion #region Constructors /// /// Initializes a new instance of the class. /// /// The color drawn by the brush. public SolidColorBrush(Color color) { this.Color = color; } #endregion #region Methods /// /// Returns the of the brush. /// /// This value isn't used. /// This value isn't used. /// The of the brush. public override Color GetColorAtPoint(RectangleF rectangle, PointF point) { return FinalizeColor(Color); } #endregion } }