[]
Represents a radial gradient brush.
public class RadialGradientBrush : Brush
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Creates a copy of a RadialGradientBrush object.
public RadialGradientBrush(RadialGradientBrush source)
source
RadialGradientBrushNote that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Initializes a new instance of the RadialGradientBrush class.
public RadialGradientBrush(Color startColor, Color endColor, PointF centerOfStartCircle)
startColor
System.Drawing.ColorThe start gradient color.
endColor
System.Drawing.ColorThe end gradient color.
centerOfStartCircle
System.Drawing.PointFThe center of the start circle that defines the beginning of the gradient.
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Initializes a new instance of the RadialGradientBrush class.
public RadialGradientBrush(Color startColor, Color endColor)
startColor
System.Drawing.ColorThe start gradient color.
endColor
System.Drawing.ColorThe end gradient color.
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets the center of the end circle that defines the end of the gradient.
(0, 0) is the top-left corner, (1, 1) is the bottom-right corner. The default is (0.5f, 0.5f).
This property only has effect if the RadiusOfEndCircle property is set.
public PointF CenterOfEndCircle { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets the center of the start circle that defines the beginning of the gradient.
(0, 0) is the top-left corner, (1, 1) is the bottom-right corner.
If not specified, the center of the start circle coincides with CenterOfEndCircle.
public PointF? CenterOfStartCircle { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets the ending gradient color.
public Color EndColor { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets a value indicating whether to extend gradient beyond the end circle.
This property only has effect if the RadiusOfEndCircle property is set.
The default is true.
public bool ExtendEndCircle { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets a value indicating whether to extend the gradient beyond the start circle.
This property only has effect if the RadiusOfEndCircle property is set.
The default is true.
public bool ExtendStartCircle { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets the collection of gradient stops.
public IList<GradientStop> GradientStops { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets a value indicating whether to normalize the brush ensuring that it renders in the same way on all supported target graphics (such as PDF, bitmap or SVG).
The default is true.
public bool Normalize { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets the radius of the end circle that defines the end of the gradient, as a fraction of the normalized diagonal. The normalized diagonal length is calculated as sqrt(width² + height²) / sqrt(2).
Setting this property to a non-null value enables the following properties:
And the following properties are ignored if this property has a value:public float? RadiusOfEndCircle { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets the radius of the start circle that defines the beginning of the gradient, as a fraction of the normalized diagonal. The normalized diagonal length is calculated as sqrt(width² + height²) / sqrt(2).
This property only has effect if the RadiusOfEndCircle property is set.
The default is 0.
public float RadiusOfStartCircle { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets or sets the starting gradient color.
public Color StartColor { get; set; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Gets a value indicating whether the brush is actually visible.
public override bool Visible { get; }
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Returns a value indicating whether brush uses semi-transparent colors.
public bool AreSemitransparentColorsUsed()
Note that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added:
Returns True if the specified brush is the same as the current brush.
protected override bool SameBrush(Brush brush)
brush
BrushNote that as of v5.0.0.771, the object model of RadialGradientBrush was expanded to better support radial gradient brushes available on different target graphics platforms (such as PDF, bitmap or SVG). The following new properties are added: