[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.LinearGradientBrush.Create

Create Method

Create(RenderTarget, LinearGradientBrushProperties, GradientStopCollection)

Creates an LinearGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.

Declaration
public static LinearGradientBrush Create(RenderTarget renderTarget, LinearGradientBrushProperties linearGradientBrushProperties, GradientStopCollection gradientStopCollection)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

LinearGradientBrushProperties linearGradientBrushProperties

The start and end points of the gradient.

GradientStopCollection gradientStopCollection

A collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient line.

Returns
Type Description
LinearGradientBrush

Create(RenderTarget, LinearGradientBrushProperties, BrushProperties?, GradientStopCollection)

Creates an LinearGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.

Declaration
public static LinearGradientBrush Create(RenderTarget renderTarget, LinearGradientBrushProperties linearGradientBrushProperties, BrushProperties? brushProperties, GradientStopCollection gradientStopCollection)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

LinearGradientBrushProperties linearGradientBrushProperties

The start and end points of the gradient.

BrushProperties? brushProperties

The transform and base opacity of the new brush, or NULL. If this value is NULL, the brush defaults to a base opacity of 1.0f and the identity matrix as its transformation.

GradientStopCollection gradientStopCollection

A collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient line.

Returns
Type Description
LinearGradientBrush