class final Core · roukmoute/pdf 0.6.2
PDF\Graphics\XObjects\ImageXObjectReal image XObject from decoded normalized rows; masks and Decode are explicit.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\ImageDecode $decode = null, PDF\Graphics\XObjects\ImageMask|PDF\Graphics\XObjects\ColourKeyMask|null $mask = null, ?PDF\Graphics\XObjects\SoftMaskImage $softMask = null, PDF\Graphics\XObjects\ImageOptions $options = new ImageOptions(), PDF\Syntax\Filters\Filter ...$filters)Declared methods
colourAt()
public function colourAt(int $x, int $y): PDF\Graphics\ColourSpaces\ColourComponentsdecodedAt()
public function decodedAt(int $x, int $y): PDF\Graphics\ColourSpaces\ColourComponentsExposes the linear Decode result before PDF colour-space clipping.validateVersion()
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\Graphics\ColourSpaces\ColourSpace $colourSpace | PDF\Graphics\XObjects\ImageXObject |
public readonly PDF\Syntax\ContentStreamsResources\ContentStreams|string $data | PDF\Syntax\Object\StreamObject |
public readonly PDF\Graphics\XObjects\ImageDecode $decode | PDF\Graphics\XObjects\ImageXObject |
public readonly array $filters | PDF\Syntax\Object\StreamObject@var list<Filter> |
public readonly PDF\Graphics\XObjects\ImageMask|PDF\Graphics\XObjects\ColourKeyMask|null $mask | PDF\Graphics\XObjects\ImageXObject |
public readonly PDF\Document\Images\ImageSamples $samples | PDF\Graphics\XObjects\ImageXObject |
public readonly ?PDF\Graphics\XObjects\SoftMaskImage $softMask | PDF\Graphics\XObjects\ImageXObject |