SolidBrush Class

Represents a brush of a single color.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public sealed class SolidBrush : Brush

Remarks

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.

Examples

C#
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");
    }
}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Drawing.Brush
L Aurigma.GraphicsMill.Drawing.SolidBrush

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also

Reference