class final Core · roukmoute/pdf 0.6.1

PDF\Graphics\XObjects\SoftMaskImage
DeviceGray soft-mask image and conditional parent Matte relation (tables 145/146).

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\StreamObject

Interfaces : PDF\Document\VersionedComponent, PDF\Syntax\FileStructure\BasicType, Stringable

Construction

__construct()

public function __construct(PDF\Document\Images\ImageSamples $samples, ?PDF\Graphics\XObjects\MatteColour $matte = null, ?PDF\Graphics\XObjects\ImageDecode $decode = null, PDF\Graphics\XObjects\ImageOptions $options = new ImageOptions(), PDF\Syntax\Filters\Filter ...$filters)

Declared by PDF\Graphics\XObjects\SoftMaskImage · View the code ↗

Declared methods

alphaAt()

public function alphaAt(int $x, int $y): PDF\Syntax\Object\NumericType

Declared by PDF\Graphics\XObjects\SoftMaskImage · View the code ↗

validateParent()

public function validateParent(PDF\Document\Images\ImageSamples $parent, PDF\Graphics\ColourSpaces\ColourSpace $space): void

Declared by PDF\Graphics\XObjects\SoftMaskImage · View the code ↗

validateParentDimensions()

public function validateParentDimensions(PDF\Document\Images\ImageDimensions $parent, PDF\Graphics\ColourSpaces\ColourSpace $space): void

Declared by PDF\Graphics\XObjects\SoftMaskImage · View the code ↗

validateVersion()

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

Declared by PDF\Graphics\XObjects\SoftMaskImage · View the code ↗

Inherited methods

4 methods from parents and contracts

__toString()

public function __toString(): string

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

bytes()

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

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

dictionary()

public function dictionary(): PDF\Syntax\Object\DictionaryType

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

toPdf()

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

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

Properties