// -----------------------------------------------------------------------
//
// Copyright 2013 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex.Media
{
///
/// Fills an area with a solid color.
///
public class SolidColorBrush : Brush
{
///
/// Initializes a new instance of the class.
///
/// The color to use.
public SolidColorBrush(Color color)
{
this.Color = color;
}
///
/// Initializes a new instance of the class.
///
/// The color to use.
public SolidColorBrush(uint color)
: this(Color.FromUInt32(color))
{
}
///
/// Gets the color of the brush.
///
public Color Color
{
get;
private set;
}
public override string ToString()
{
return this.Color.ToString();
}
}
}