class final Core · roukmoute/pdf 0.6.2
PDF\Graphics\Patterns\Shadings\AxialShadingType 2 axial declaration and its exact point-to-function parameter mapping (pages 193–194).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 ↗
| Entry | PDF type | Source requirement | Table |
|---|---|---|---|
/ShadingType | integer | Required | 78 |
/ColorSpace | name or array | Required | 78 |
/Background | array | Optional | 78 |
/BBox | rectangle | Optional | 78 |
/AntiAlias | boolean | Optional | 78 |
/Coords | array | Required | 80 |
/Domain | array | Optional | 80 |
/Function | function or array | Required | 80 |
/Extend | array | Optional | 80 |
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 methods
parameterAt()
public function parameterAt(PDF\Graphics\Patterns\Shadings\Point $point): ?PDF\Syntax\Object\NumericTypeInherited methods
14 methods from parents and contracts
__toString()
public function __toString(): stringcolourSpace()
public function colourSpace(): PDF\Graphics\ColourSpaces\ColourSpacecount()
public function count(): intdefinition()
public function definition(): PDF\Specification\TableDefinitionentries()
public function entries(): iterable@return iterable<Entry>get()
public function get(PDF\Syntax\Object\NameType|string $key): ?PDF\Syntax\FileStructure\BasicTypegetIterator()
public function getIterator(): Traversablehas()
public function has(PDF\Syntax\Object\NameType|string $key): boolshadingType()
public function shadingType(): inttoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): stringvalidate()
public function validate(): voidChecks unconditional requirements; conditional and inherited rules remain explicit.validateVersion()
public function validateVersion(PDF\Syntax\FileStructure\EffectivePdfVersion $version): voidwith()
public function with(PDF\Syntax\Object\DictionaryObject\Entry $entry): staticwithout()
public function without(PDF\Syntax\Object\NameType|string $key): staticProperties
| Declaration | Origin and documentation |
|---|---|
public readonly PDF\Functions\NumberInterval $domain | PDF\Graphics\Patterns\Shadings\AxialShading |
public readonly PDF\Graphics\Patterns\Shadings\Point $end | PDF\Graphics\Patterns\Shadings\AxialShading |
public readonly PDF\Graphics\Patterns\Shadings\ShadingExtension $extend | PDF\Graphics\Patterns\Shadings\AxialShading |
public readonly PDF\Graphics\Patterns\Shadings\Point $start | PDF\Graphics\Patterns\Shadings\AxialShading |
Constants
| Name | PHP value | Origin |
|---|---|---|
COMMON_TABLES | | PDF\Specification\SchemaDictionary |
TABLE | | PDF\Graphics\Patterns\Shadings\AxialShading |