class final Core · roukmoute/pdf 0.6.2
PDF\Graphics\XObjects\EncodedImageXObjectExternally encoded samples with explicit PDF metadata; no image codec is parsed.Inheritance and contracts
Parent : PDF\Syntax\Object\StreamObject
Interfaces : PDF\Document\VersionedComponent, PDF\Syntax\FileStructure\BasicType, Stringable
Construction
__construct()
public function __construct(string $bytes, PDF\Document\Images\ImageDimensions $dimensions, PDF\Syntax\Filters\EncodedData $encoded, ?PDF\Graphics\ColourSpaces\ColourSpace $colourSpace = null, ?PDF\Syntax\Object\IntegerType $bitsPerComponent = null, ?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\EmbeddedImageAlpha $embeddedAlpha = PDF\Graphics\XObjects\EmbeddedImageAlpha::Ignore, PDF\Graphics\XObjects\ImageOptions $options = new ImageOptions(), PDF\Syntax\Filters\Filter ...$outerFilters)Declared methods
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\Syntax\Object\IntegerType $bitsPerComponent | PDF\Graphics\XObjects\EncodedImageXObject |
public readonly ?PDF\Graphics\ColourSpaces\ColourSpace $colourSpace | PDF\Graphics\XObjects\EncodedImageXObject |
public readonly PDF\Syntax\ContentStreamsResources\ContentStreams|string $data | PDF\Syntax\Object\StreamObject |
public readonly PDF\Document\Images\ImageDimensions $dimensions | PDF\Graphics\XObjects\EncodedImageXObject |
public readonly array $filters | PDF\Syntax\Object\StreamObject@var list<Filter> |