setasign\SetaPDF2\Core\ColorSpace
Indexed Indexed Color Space
File: /SetaPDF v2/Core/ColorSpace/Indexed.php
Old class name (alias):
\SetaPDF_Core_ColorSpace_Indexed
Class hierarchy
Implements
Summary
Constants
TYPE_COLOR_SPACE
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_COLOR_SPACE = 'ColorSpace'
Type constant
TYPE_EXT_G_STATE
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_EXT_G_STATE = 'ExtGState'
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_PROPERTIES = 'Properties'
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Properties
$_value
protected \setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArray ColorSpace::$_value
The main color space PDF value
Static Methods
createByDefinition()
public static ColorSpace::createByDefinition (
string|\setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArray|\setasign\SetaPDF2\Core\Type\IndirectObjectInterface $object
): ColorSpace|DeviceCmyk|DeviceGray|DeviceRgb|IccBased|SeparationCreates a color space instance based on the incoming value.
Parameters
- $object : string|\setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArray|\setasign\SetaPDF2\Core\Type\IndirectObjectInterface
A color space definition
Exceptions
Throws \InvalidArgumentException
Methods
__construct()
The constructor.
Parameters
- $definition : \setasign\SetaPDF2\Core\Type\AbstractType
Exceptions
Throws \InvalidArgumentException,\setasign\SetaPDF2\Core\Exception
getBase()
getDefaultDecodeArray()
Get the default decode array of this color space.
Parameters
- $bitsPerComponent : int
getIndirectObject()
public AbstractResource::getIndirectObject (
?\setasign\SetaPDF2\Core\Document $document = null
): \setasign\SetaPDF2\Core\Type\IndirectObjectInterfaceGets an indirect object for this color space dictionary.
Parameters
- $document : ?\setasign\SetaPDF2\Core\Document
Exceptions
Throws \InvalidArgumentException
See
getLookupTable()
getPdfValue()
public ColorSpace::getPdfValue (
void
): \setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArrayGet the main color space PDF value.