• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class AxialShading

An axial (linear) shading (spec §8.7.4.5.2). Colors interpolate along a line between two endpoints.

Inheritance
object
Shading
AxialShading
Implements
IEquatable<Shading>
Inherited Members
Shading.Type
Shading.ColorSpace
Shading.Equals(object)
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: DRIT.Pdf.Content
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
Type Name Description
ColorSpace colorSpace
ShadingColorStop start
ShadingColorStop end

Properties

EndPoint

Gets or sets the end point coordinate (x1, y1).

Declaration
public (double X, double Y) EndPoint { get; set; }
Property Value
Type Description
(double X, double Y)

StartPoint

Gets or sets the start point coordinate (x0, y0).

Declaration
public (double X, double Y) StartPoint { get; set; }
Property Value
Type Description
(double X, double Y)

Methods

Equals(Shading?)

Indicates whether this shading equals another.

Declaration
public override bool Equals(Shading? other)
Parameters
Type Name Description
Shading other
Returns
Type Description
bool
Overrides
Shading.Equals(Shading?)

GetHashCode()

Returns a hash code for this shading.

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
Shading.GetHashCode()

Operators

operator ==(AxialShading?, AxialShading?)

Equality operator.

Declaration
public static bool operator ==(AxialShading? a, AxialShading? b)
Parameters
Type Name Description
AxialShading a
AxialShading b
Returns
Type Description
bool

operator !=(AxialShading?, AxialShading?)

Inequality operator.

Declaration
public static bool operator !=(AxialShading? a, AxialShading? b)
Parameters
Type Name Description
AxialShading a
AxialShading b
Returns
Type Description
bool

Implements

IEquatable<T>
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX