Method CreateRadialGradientBrush
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
CreateRadialGradientBrush(in RadialGradientBrushProperties, in BrushProperties?, IGradientStopCollection)
Creates an IRadialGradientBrush object that can be used to paint areas with a radial gradient.
IRadialGradientBrush CreateRadialGradientBrush(in RadialGradientBrushProperties radialGradientBrushProperties, in BrushProperties? brushProperties, IGradientStopCollection gradientStopCollection)
Parameters
radialGradientBrushPropertiesRadialGradientBrushPropertiesThe center, gradient origin offset, and x-radius and y-radius of the brush's gradient.
brushPropertiesBrushProperties?The transform and base opacity of the new brush. Pass null to use an opacity of 1.0f and an identity transform matrix.
gradientStopCollectionIGradientStopCollectionA IGradientStopCollection object that describes the colors in the brush's gradient and their locations along the gradient.
Returns
- IRadialGradientBrush
A new radial gradient brush.