Class AxialShading
An axial (linear) shading (spec §8.7.4.5.2).
Colors interpolate along a line between two endpoints.
Assembly: DRIT.Pdf.dll
Syntax
public sealed class AxialShading : Shading, IEquatable<Shading>
Constructors
AxialShading(ColorSpace, ShadingColorStop, ShadingColorStop)
Initializes an axial shading with the specified color stops.
Declaration
public AxialShading(ColorSpace colorSpace, ShadingColorStop start, ShadingColorStop end)
Parameters
Properties
EndPoint
Gets or sets the end point coordinate (x1, y1).
Declaration
public (double X, double Y) EndPoint { get; set; }
Property Value
StartPoint
Gets or sets the start point coordinate (x0, y0).
Declaration
public (double X, double Y) StartPoint { get; set; }
Property Value
Methods
Equals(Shading?)
Indicates whether this shading equals another.
Declaration
public override bool Equals(Shading? other)
Parameters
| Type |
Name |
Description |
| Shading |
other |
|
Returns
Overrides
GetHashCode()
Returns a hash code for this shading.
Declaration
public override int GetHashCode()
Returns
Overrides
Operators
operator ==(AxialShading?, AxialShading?)
Declaration
public static bool operator ==(AxialShading? a, AxialShading? b)
Parameters
Returns
operator !=(AxialShading?, AxialShading?)
Declaration
public static bool operator !=(AxialShading? a, AxialShading? b)
Parameters
Returns
Implements