Table of Contents

Class Brush

Namespace
LMKit.Graphics.Drawing
Assembly
LM-Kit.NET.dll

Represents a solid-colored brush used for filling the interior of shapes.

public sealed class Brush
Inheritance
Brush
Inherited Members

Examples

// Create a blue brush and fill a rectangle on a canvas.
var brush = new Brush(new Color32(0, 120, 215));
var canvas = new Canvas(image);
canvas.FillRectangle(Rectangle.FromSize(10, 10, 200, 100), brush);

Remarks

A Brush carries a single Color32 that is applied uniformly when filling rectangles, quadrilaterals, or other closed regions through a Canvas.

Constructors

Brush(Color32)

Initializes a new instance of the Brush class with the specified fill color.

Properties

Color

Gets the fill color of this brush.

Methods

ToString()