class final Core · roukmoute/pdf 0.6.2

PDF\Graphics\Patterns\Shadings\AxialShading
Type 2 axial declaration and its exact point-to-function parameter mapping (pages 193–194).

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Graphics\Patterns\Shadings\ShadingDictionary

Interfaces : Countable, IteratorAggregate, PDF\Document\VersionedComponent, PDF\Graphics\Patterns\Shadings\ShadingObject, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable

Definition in the specification

Table 80 · Additional Entries Specific to a Type 2 Shading Dictionary
ISO 32000-1:2008, §8.7.4.5.3 · PDF page 194 ↗

EntryPDF typeSource requirementTable
/ShadingTypeintegerRequired78
/ColorSpacename or arrayRequired78
/BackgroundarrayOptional78
/BBoxrectangleOptional78
/AntiAliasbooleanOptional78
/CoordsarrayRequired80
/DomainarrayOptional80
/Functionfunction or arrayRequired80
/ExtendarrayOptional80

Conditional descriptions remain traceable. A definition alone does not implement a codec, a signature or every format mechanism. Read the coverage.

Construction

__construct()

public function __construct(PDF\Graphics\ColourSpaces\ColourSpace $space, PDF\Graphics\Patterns\Shadings\Point $start, PDF\Graphics\Patterns\Shadings\Point $end, PDF\Graphics\Patterns\Shadings\ShadingFunctions $functions, PDF\Functions\NumberInterval $domain = new NumberInterval(new NumericType(0), new NumericType(1)), PDF\Graphics\Patterns\Shadings\ShadingExtension $extend = new ShadingExtension(), PDF\Graphics\Patterns\Shadings\ShadingOptions $options = new ShadingOptions())

Declared by PDF\Graphics\Patterns\Shadings\AxialShading · View the code ↗

Declared methods

parameterAt()

Declared by PDF\Graphics\Patterns\Shadings\AxialShading · View the code ↗

Inherited methods

14 methods from parents and contracts

__toString()

public function __toString(): string

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

colourSpace()

public function colourSpace(): PDF\Graphics\ColourSpaces\ColourSpace

Declared by PDF\Graphics\Patterns\Shadings\ShadingDictionary · View the code ↗

count()

public function count(): int

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

definition()

public function definition(): PDF\Specification\TableDefinition

Declared by PDF\Specification\SchemaDictionary · View the code ↗

entries()

public function entries(): iterable
@return iterable<Entry>

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

get()

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

getIterator()

public function getIterator(): Traversable

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

has()

public function has(PDF\Syntax\Object\NameType|string $key): bool

Declared by PDF\Syntax\Object\DictionaryType · View the code ↗

shadingType()

public function shadingType(): int

Declared by PDF\Graphics\Patterns\Shadings\ShadingDictionary · View the code ↗

toPdf()

public function toPdf(PDF\Serialization\SerializationContext $context): string

Declared by PDF\Specification\SchemaDictionary · View the code ↗

validate()

public function validate(): void
Checks unconditional requirements; conditional and inherited rules remain explicit.

Declared by PDF\Specification\SchemaDictionary · View the code ↗

validateVersion()

public function validateVersion(PDF\Syntax\FileStructure\EffectivePdfVersion $version): void

Declared by PDF\Graphics\Patterns\Shadings\ShadingDictionary · View the code ↗

with()

public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): static

Declared by PDF\Graphics\Patterns\Shadings\ShadingDictionary · View the code ↗

without()

public function without(PDF\Syntax\Object\NameType|string $key): static

Declared by PDF\Graphics\Patterns\Shadings\ShadingDictionary · View the code ↗

Properties

Constants