Represents a brush of a single color.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class SolidBrush : Brush
Solid brush is the simplest kind of brush. It fills the shape with a solid color. This color is specified by property Color.
You can convert this brush instance into its analogue from System.Drawing namespace using method ToGdiPlusBrush(), or an appropriate cast operator.
using (var bitmap = new Bitmap(100, 60, PixelFormat.Format24bppRgb, RgbColor.White)) { using (Graphics graphics = bitmap.GetGraphics()) { var brush = new SolidBrush(RgbColor.Blue); graphics.FillEllipse(brush, 10, 5, 80, 50); bitmap.Save(@"Images\Output\brush.png"); } }