Working with Brushes

Aspose.Drawing for .NET API provides the capability to draw graphics elements. Brushes are one of the key element of working with graphics and are used to fill the internal of a drawing object such as an ellipse, circle, etc with the specified color.

Using Solid Brush to Draw Graphics in C#

To draw graphics with a solid brush, the following steps can be used.

  1. Create an object of the Bitmap class
  2. Initialize the Graphics object from above bitmap
  3. Create a new Brush using the SolidBrush class
  4. Use the FillEllipse method as an example to draw a solid filled Ellipse
  5. Save the output to any desirable output image format

Draw with solid brush