class final Core · roukmoute/pdf 0.6.2

PDF\Graphics\XObjects\ImageMask
One-bit stencil image; absent ColorSpace/Mask/SMask is enforced (8.9.6.2).

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\StreamObject

Interfaces : PDF\Syntax\FileStructure\BasicType, Stringable

Construction

__construct()

public function __construct(PDF\Document\Images\ImageSamples $samples, PDF\Syntax\Object\BooleanType $inverted = new BooleanType(false), PDF\Graphics\XObjects\ImageOptions $options = new ImageOptions(), PDF\Syntax\Filters\Filter ...$filters)

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

Declared methods

paints()

public function paints(int $x, int $y): bool

Declared by PDF\Graphics\XObjects\ImageMask · 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

DeclarationOrigin and documentation
public readonly PDF\Syntax\ContentStreamsResources\ContentStreams|string $dataPDF\Syntax\Object\StreamObject
public readonly array $filtersPDF\Syntax\Object\StreamObject
@var list<Filter>
public readonly PDF\Syntax\Object\BooleanType $invertedPDF\Graphics\XObjects\ImageMask
public readonly PDF\Document\Images\ImageSamples $samplesPDF\Graphics\XObjects\ImageMask