Class SvgGradientServer
Provides the base class for all paint servers that wish to render a gradient.
Inheritance
SvgGradientServer
Inherited Members
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Svg
Assembly: Svg.dll
Syntax
public abstract class SvgGradientServer : SvgPaintServer, ISvgTransformable, ICloneable, ISvgNode
Properties
|
Improve this Doc
View Source
Declaration
protected Matrix EffectiveGradientTransform { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public SvgTransformCollection GradientTransform { get; set; }
Property Value
|
Improve this Doc
View Source
GradientUnits
Gets or sets the coordinate system of the gradient.
Declaration
public SvgCoordinateUnits GradientUnits { get; set; }
Property Value
|
Improve this Doc
View Source
InheritGradient
Gets or sets another gradient fill from which to inherit the stops from.
Declaration
[SvgAttribute("href", "http://www.w3.org/1999/xlink")]
public SvgDeferredPaintServer InheritGradient { get; set; }
Property Value
|
Improve this Doc
View Source
SpreadMethod
Specifies what happens if the gradient starts or ends inside the bounds of the target rectangle.
Declaration
public SvgGradientSpreadMethod SpreadMethod { get; set; }
Property Value
|
Improve this Doc
View Source
StopColor
Gets or sets the colour of the gradient stop.
Declaration
[TypeConverter(typeof(SvgPaintServerFactory))]
public SvgPaintServer StopColor { get; set; }
Property Value
|
Improve this Doc
View Source
StopOpacity
Gets or sets the opacity of the gradient stop (0-1).
Declaration
public float StopOpacity { get; set; }
Property Value
|
Improve this Doc
View Source
Stops
Gets the ramp of colors to use on a gradient.
Declaration
public List<SvgGradientStop> Stops { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddElement(SvgElement, Int32)
Called by the underlying SvgElement when an element has been added to the
'Children' collection.
Declaration
protected override void AddElement(SvgElement child, int index)
Parameters
| Type |
Name |
Description |
| SvgElement |
child |
The SvgElement that has been added.
|
| Int32 |
index |
An Int32 representing the index where the element was added to the collection.
|
Overrides
|
Improve this Doc
View Source
CalculateDistance(PointF, PointF)
Declaration
protected static double CalculateDistance(PointF first, PointF second)
Parameters
Returns
|
Improve this Doc
View Source
CalculateLength(PointF)
Declaration
protected static float CalculateLength(PointF vector)
Parameters
| Type |
Name |
Description |
| PointF |
vector |
|
Returns
|
Improve this Doc
View Source
CreateBrush(SvgVisualElement, ISvgRenderer, Single, Boolean)
Declaration
protected abstract Brush CreateBrush(SvgVisualElement renderingElement, ISvgRenderer renderer, float opacity, bool forStroke)
Parameters
Returns
|
Improve this Doc
View Source
GetBrush(SvgVisualElement, ISvgRenderer, Single, Boolean)
Declaration
public override Brush GetBrush(SvgVisualElement styleOwner, ISvgRenderer renderer, float opacity, bool forStroke = false)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetColorBlend(ISvgRenderer, Single, Boolean)
Declaration
protected ColorBlend GetColorBlend(ISvgRenderer renderer, float opacity, bool radial)
Parameters
Returns
| Type |
Description |
| ColorBlend |
|
|
Improve this Doc
View Source
NormalizeUnit(SvgUnit)
Declaration
protected SvgUnit NormalizeUnit(SvgUnit orig)
Parameters
Returns
|
Improve this Doc
View Source
RemoveElement(SvgElement)
Called by the underlying SvgElement when an element has been removed from the
'Children' collection.
Declaration
protected override void RemoveElement(SvgElement child)
Parameters
Overrides
Implements
Extension Methods