Class SolidColorBrush
Represents the solid brush with one color to draw.
public class SolidColorBrush : IBrush
- Inheritance
-
SolidColorBrush
- Implements
- Inherited Members
- Extension Methods
Constructors
SolidColorBrush(Color)
Initializes a new instance of the SolidColorBrush class.
public SolidColorBrush(Color color)
Parameters
colorColorColor of the brush.
Properties
Color
Gets the color of the brush.
public Color Color { get; }
Property Value
Methods
Draw(IRenderContext, in TextureRenderingOptions)
Draws a brush on the specified render surface.
public void Draw(IRenderContext context, in TextureRenderingOptions options)
Parameters
contextIRenderContextAn instance of the render context to draw brush with..
optionsTextureRenderingOptionsOptions to draw the brush with.