Table of Contents

Method CreateSolidColorBrush

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

CreateSolidColorBrush(ColorRgba128Float, in BrushProperties?)

Creates a new ISolidColorBrush that can be used to paint areas with a solid color.

ISolidColorBrush CreateSolidColorBrush(ColorRgba128Float color, in BrushProperties? brushProperties = null)

Parameters

color ColorRgba128Float

The red, green, blue, and alpha values of the brush's color.

brushProperties BrushProperties?

The base opacity of the brush. The transform matrix is ignored.

Returns

ISolidColorBrush

The new solid color brush object.