[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.SolidColorBrush.Create

Create Method

Create(RenderTarget, ColorF)

Creates a new SolidColorBrush that has the specified color and opacity.

Declaration
public static SolidColorBrush Create(RenderTarget renderTarget, ColorF color)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

ColorF color

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

Returns
Type Description
SolidColorBrush

Create(RenderTarget, ColorF, BrushProperties?)

Creates a new SolidColorBrush that has the specified color and opacity.

Declaration
public static SolidColorBrush Create(RenderTarget renderTarget, ColorF color, BrushProperties? brushProperties)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

ColorF color

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

BrushProperties? brushProperties

The base opacity of the brush.

Returns
Type Description
SolidColorBrush