Class GorgonGlyphLinearGradientBrush
A brush used to draw glyphs using a linear gradient value.
Inherited Members
Namespace: Gorgon.Graphics.Fonts
Assembly: Gorgon.Graphics.Fonts.dll
Syntax
public class GorgonGlyphLinearGradientBrush : GorgonGlyphBrush, IGorgonCloneable<GorgonGlyphBrush>, IEquatable<GorgonGlyphBrush>
Remarks
This allows glyphs to be drawn using multiple colors that fade into one another.
Constructors
| Edit this page View SourceGorgonGlyphLinearGradientBrush()
Initializes a new instance of the GorgonGlyphPathGradientBrush class.
Declaration
public GorgonGlyphLinearGradientBrush()
See Also
Properties
| Edit this page View SourceAngle
Property to set or return the angle, in degrees, for the gradient.
Declaration
public float Angle { get; set; }
Property Value
Type | Description |
---|---|
float |
See Also
| Edit this page View SourceBrushType
Property to return the type of brush.
Declaration
public override GlyphBrushType BrushType { get; }
Property Value
Type | Description |
---|---|
GlyphBrushType |
Overrides
See Also
| Edit this page View SourceEndColor
Property to set or return the ending color to use for the gradient.
Declaration
public GorgonColor EndColor { get; set; }
Property Value
Type | Description |
---|---|
GorgonColor |
See Also
| Edit this page View SourceGammaCorrection
Property to set or return whether to enable or disable gamma correction.
Declaration
public bool GammaCorrection { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
| Edit this page View SourceInterpolation
Property to return the interpolation colors for the gradient.
Declaration
public IList<GorgonGlyphBrushInterpolator> Interpolation { get; }
Property Value
Type | Description |
---|---|
IList<GorgonGlyphBrushInterpolator> |
See Also
| Edit this page View SourceScaleAngle
Property to set or return whether to scale the angle.
Declaration
public bool ScaleAngle { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
| Edit this page View SourceStartColor
Property to set or return the starting color to use for the gradient.
Declaration
public GorgonColor StartColor { get; set; }
Property Value
Type | Description |
---|---|
GorgonColor |
See Also
Methods
| Edit this page View SourceClone()
Function to clone an object.
Declaration
public override GorgonGlyphBrush Clone()
Returns
Type | Description |
---|---|
GorgonGlyphBrush | The cloned object. |
Overrides
See Also
| Edit this page View SourceEquals(GorgonGlyphBrush)
Indicates whether the current object is equal to another object of the same type.
Declaration
public override bool Equals(GorgonGlyphBrush other)
Parameters
Type | Name | Description |
---|---|---|
GorgonGlyphBrush | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool |
true
True
true
true (True in Visual Basic) if the current object is equal to the other parameter; otherwise, falseFalsefalsefalse (False in Visual Basic).
|