SolidBrush Class

A brush painting a single color.

public sealed class SolidBrush : Brush
Inheritance
Brush SolidBrush

Constructors

NameDescription
SolidBrush(Rgba64)Initializes a new instance of the SolidBrush class.
SolidBrush(RgbaFloat)Creates a paint whose sample range and precision are preserved on floating-point canvases.

SolidBrush overloads

SolidBrush(Rgba64)

SolidBrush.cs

Initializes a new instance of the SolidBrush class.

public SolidBrush(Rgba64 color)
Parameters
color Rgba64
The color, with straight alpha. An Rgba32 converts implicitly.

SolidBrush(RgbaFloat)

SolidBrush.cs

Creates a paint whose sample range and precision are preserved on floating-point canvases.

public SolidBrush(RgbaFloat color)
Parameters
color RgbaFloat
The color, with straight alpha. Integer canvases use its normalized 16-bit representation.

Properties

NameDescription
ColorGets the color, with straight alpha.

Gets the color, with straight alpha.

public Rgba64 Color { get; }

Property value

Rgba64