class final Core · roukmoute/pdf 0.6.1
PDF\Graphics\Patterns\Shadings\FunctionBasedShadingType 1: two independent coordinates, colour functions and an explicit target matrix (page 193).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 79 · Additional Entries Specific to a Type 1 Shading Dictionary
ISO 32000-1:2008, §8.7.4.5.3 · PDF page 193 ↗
| 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 |
/Domain | array | Optional | 79 |
/Matrix | array | Optional | 79 |
/Function | function or array | Required | 79 |
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\ShadingFunctions $functions, PDF\Functions\Domain $domain = new Domain(new NumberInterval(new NumericType(0), new NumericType(1)), new NumberInterval(new NumericType(0), new NumericType(1))), PDF\Graphics\CoordinateSystems\Matrix $matrix = new Matrix(), PDF\Graphics\Patterns\Shadings\ShadingOptions $options = new ShadingOptions())Inherited 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\Domain $domain | PDF\Graphics\Patterns\Shadings\FunctionBasedShading |
public readonly PDF\Graphics\CoordinateSystems\Matrix $matrix | PDF\Graphics\Patterns\Shadings\FunctionBasedShading |
Constants
| Name | PHP value | Origin |
|---|---|---|
COMMON_TABLES | | PDF\Specification\SchemaDictionary |
TABLE | | PDF\Graphics\Patterns\Shadings\FunctionBasedShading |