Table of Contents

Class Brush

Namespace
nanoFramework.Presentation.Media
Assembly
nanoFramework.Graphics.dll

Represents a brush object used to fill shapes with a color or pattern.

public abstract class Brush
Inheritance
Brush
Derived
Inherited Members
Extension Methods

Constructors

Brush()

protected Brush()

Properties

Opacity

Gets or sets the opacity of the brush.

public ushort Opacity { get; set; }

Property Value

ushort

Methods

RenderEllipse(Bitmap, Pen, int, int, int, int)

Renders an ellipse using the brush.

protected virtual void RenderEllipse(Bitmap bmp, Pen outline, int x, int y, int xRadius, int yRadius)

Parameters

bmp Bitmap

The bitmap to render to.

outline Pen

The pen used to outline the ellipse.

x int

The x-coordinate of the ellipse.

y int

The y-coordinate of the ellipse.

xRadius int

The x-radius of the ellipse.

yRadius int

The y-radius of the ellipse.

RenderPolygon(Bitmap, Pen, int[])

Renders a polygon using the brush.

protected virtual void RenderPolygon(Bitmap bmp, Pen outline, int[] pts)

Parameters

bmp Bitmap

The bitmap to render to.

outline Pen

The pen used to outline the polygon.

pts int[]

The points that define the polygon.

RenderRectangle(Bitmap, Pen, int, int, int, int)

Renders a rectangle using the brush.

protected abstract void RenderRectangle(Bitmap bmp, Pen outline, int x, int y, int width, int height)

Parameters

bmp Bitmap

The bitmap to render to.

outline Pen

The pen used to outline the rectangle.

x int

The x-coordinate of the rectangle.

y int

The y-coordinate of the rectangle.

width int

The width of the rectangle.

height int

The height of the rectangle.