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
bmpBitmapThe bitmap to render to.
outlinePenThe pen used to outline the ellipse.
xintThe x-coordinate of the ellipse.
yintThe y-coordinate of the ellipse.
xRadiusintThe x-radius of the ellipse.
yRadiusintThe 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
bmpBitmapThe bitmap to render to.
outlinePenThe pen used to outline the polygon.
ptsint[]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)