[]
        
(Showing Draft Content)

C1.Util.DX.Direct2D.RadialGradientBrush.Create

Create Method

Create(RenderTarget, ref RadialGradientBrushProperties, GradientStopCollection)

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

Declaration
[CLSCompliant(false)]
public static RadialGradientBrush Create(RenderTarget renderTarget, ref RadialGradientBrushProperties radialGradientBrushProperties, GradientStopCollection gradientStopCollection)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

RadialGradientBrushProperties radialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's gradient.

GradientStopCollection gradientStopCollection

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

Returns
Type Description
RadialGradientBrush

Create(RenderTarget, RadialGradientBrushProperties, GradientStopCollection)

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

Declaration
public static RadialGradientBrush Create(RenderTarget renderTarget, RadialGradientBrushProperties radialGradientBrushProperties, GradientStopCollection gradientStopCollection)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

RadialGradientBrushProperties radialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's gradient.

GradientStopCollection gradientStopCollection

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

Returns
Type Description
RadialGradientBrush

Create(RenderTarget, RadialGradientBrushProperties, BrushProperties, GradientStopCollection)

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

Declaration
public static RadialGradientBrush Create(RenderTarget renderTarget, RadialGradientBrushProperties radialGradientBrushProperties, BrushProperties brushProperties, GradientStopCollection gradientStopCollection)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

RadialGradientBrushProperties radialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's 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.

Returns
Type Description
RadialGradientBrush

Create(RenderTarget, ref RadialGradientBrushProperties, BrushProperties?, GradientStopCollection)

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

Declaration
public static RadialGradientBrush Create(RenderTarget renderTarget, ref RadialGradientBrushProperties radialGradientBrushProperties, BrushProperties? brushProperties, GradientStopCollection gradientStopCollection)
Parameters
Type Name Description
RenderTarget renderTarget

an instance of RenderTarget

RadialGradientBrushProperties radialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's 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.

Returns
Type Description
RadialGradientBrush