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.
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
Properties
ColorSpace
Gets the color space used by this shading.
Declaration
public ColorSpace ColorSpace { get; }
Property Value
Type
Gets the shading type (function-based, axial, radial, etc.).
Declaration
public ShadingType Type { get; }
Property Value
Methods
Equals(Shading?)
Indicates whether this shading equals another.
Declaration
public abstract bool Equals(Shading? other)
Parameters
| Type |
Name |
Description |
| Shading |
other |
|
Returns
Equals(object?)
Indicates whether this shading equals another object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Returns a hash code for this shading.
Declaration
public override abstract int GetHashCode()
Returns
Overrides
Implements