This documentation is for the old version. Go to the latest Graphics Mill docs

SolidBrush Class

Represents solid brush class.

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

Syntax

Visual Basic
Public NotInheritable Class SolidBrush _
	Inherits Brush
C#
public sealed class SolidBrush : Brush

Remarks

Solid brush is the simplest kind of brush. It fills the shape with 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 appropriate cast operator.

Examples

Visual Basic
Dim bitmap As New Aurigma.GraphicsMill.Bitmap( _
 Aurigma.GraphicsMill.RgbColor.White, 100, 60, _
 Aurigma.GraphicsMill.PixelFormat.Format24bppRgb)

Dim graphics As Aurigma.GraphicsMill.Drawing.GdiGraphics = bitmap.GetGdiGraphics()

Dim brush As New Aurigma.GraphicsMill.Drawing.SolidBrush(Aurigma.GraphicsMill.RgbColor.Blue)

graphics.FillEllipse(brush, 10, 5, 80, 50)
C#
Aurigma.GraphicsMill.Bitmap bitmap = new Aurigma.GraphicsMill.Bitmap(
    Aurigma.GraphicsMill.RgbColor.White, 100, 60, 
    Aurigma.GraphicsMill.PixelFormat.Format24bppRgb);

Aurigma.GraphicsMill.Drawing.GdiGraphics graphics = bitmap.GetGdiGraphics();

Aurigma.GraphicsMill.Drawing.SolidBrush brush = 
    new Aurigma.GraphicsMill.Drawing.SolidBrush(Aurigma.GraphicsMill.RgbColor.Blue);

graphics.FillEllipse(brush, 10, 5, 80, 50);

Inheritance Hierarchy

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

Thread Safety

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

Object Model




See Also

Reference