class final Core · roukmoute/pdf 0.6.1
PDF\Graphics\XObjects\SoftMaskImageDeviceGray soft-mask image and conditional parent Matte relation (tables 145/146).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 methods
alphaAt()
public function alphaAt(int $x, int $y): PDF\Syntax\Object\NumericTypevalidateParent()
public function validateParent(PDF\Document\Images\ImageSamples $parent, PDF\Graphics\ColourSpaces\ColourSpace $space): voidvalidateParentDimensions()
public function validateParentDimensions(PDF\Document\Images\ImageDimensions $parent, PDF\Graphics\ColourSpaces\ColourSpace $space): voidvalidateVersion()
public function validateVersion(PDF\Syntax\FileStructure\EffectivePdfVersion $version): voidInherited methods
4 methods from parents and contracts
__toString()
public function __toString(): stringbytes()
public function bytes(PDF\Serialization\SerializationContext $context): stringdictionary()
public function dictionary(): PDF\Syntax\Object\DictionaryTypetoPdf()
public function toPdf(PDF\Serialization\SerializationContext $context): stringProperties
| Declaration | Origin and documentation |
|---|---|
public readonly PDF\Syntax\ContentStreamsResources\ContentStreams|string $data | PDF\Syntax\Object\StreamObject |
public readonly PDF\Graphics\XObjects\ImageDecode $decode | PDF\Graphics\XObjects\SoftMaskImage |
public readonly array $filters | PDF\Syntax\Object\StreamObject@var list<Filter> |
public readonly ?PDF\Graphics\XObjects\MatteColour $matte | PDF\Graphics\XObjects\SoftMaskImage |
public readonly PDF\Document\Images\ImageSamples $samples | PDF\Graphics\XObjects\SoftMaskImage |