File: SolidPaint.cs
Web Access
Project: src\src\Graphics\src\Graphics\Graphics.csproj (Microsoft.Maui.Graphics)
namespace Microsoft.Maui.Graphics
{
	public class SolidPaint : Paint
	{
		public SolidPaint()
		{
		}
 
		public SolidPaint(Color color)
		{
			Color = color;
		}
 
		public Color Color { get; set; }
 
		public override bool IsTransparent
		{
			get
			{
				return Color.Alpha < 1;
			}
		}
 
		public override string ToString()
		{
			return $"[{nameof(SolidPaint)}: Color={Color}]";
		}
	}
}