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

Class RadialShading

A radial shading (spec §8.7.4.5.3). Colors interpolate along a line between two circles.

Inheritance
object
Shading
RadialShading
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 RadialShading : Shading, IEquatable<Shading>

Constructors

RadialShading(ColorSpace, ShadingColorStop, ShadingColorStop)

Initializes a radial shading with the specified color stops.

Declaration
public RadialShading(ColorSpace colorSpace, ShadingColorStop start, ShadingColorStop end)
Parameters
Type Name Description
ColorSpace colorSpace
ShadingColorStop start
ShadingColorStop end

Properties

EndCircle

Gets or sets the end circle center (x1, y1) and radius.

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

StartCircle

Gets or sets the start circle center (x0, y0) and radius.

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

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 ==(RadialShading?, RadialShading?)

Equality operator.

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

operator !=(RadialShading?, RadialShading?)

Inequality operator.

Declaration
public static bool operator !=(RadialShading? a, RadialShading? b)
Parameters
Type Name Description
RadialShading a
RadialShading 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