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

Class Shading

A PDF shading (spec §8.7.4). Shadings define gradients or more complex color transitions. This is the base class for all shading types.

Inheritance
object
Shading
AxialShading
FunctionBasedShading
MeshShading
RadialShading
Implements
IEquatable<Shading>
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public abstract class Shading : IEquatable<Shading>

Constructors

Shading(ShadingType, ColorSpace)

Initializes a new shading with the specified type and color space.

Declaration
protected Shading(ShadingType type, ColorSpace colorSpace)
Parameters
Type Name Description
ShadingType type
ColorSpace colorSpace

Properties

ColorSpace

Gets the color space used by this shading.

Declaration
public ColorSpace ColorSpace { get; }
Property Value
Type Description
ColorSpace

Type

Gets the shading type (function-based, axial, radial, etc.).

Declaration
public ShadingType Type { get; }
Property Value
Type Description
ShadingType

Methods

Equals(Shading?)

Indicates whether this shading equals another.

Declaration
public abstract bool Equals(Shading? other)
Parameters
Type Name Description
Shading other
Returns
Type Description
bool

Equals(object?)

Indicates whether this shading equals another object.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

GetHashCode()

Returns a hash code for this shading.

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

Implements

IEquatable<T>
Back to top

DR-IT Software documentation

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

Generated by DocFX