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
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
BitmapThe bitmap to render to.
outline
PenThe pen used to outline the ellipse.
x
intThe x-coordinate of the ellipse.
y
intThe y-coordinate of the ellipse.
xRadius
intThe x-radius of the ellipse.
yRadius
intThe 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
BitmapThe bitmap to render to.
outline
PenThe 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)