SetaPDF_Core_ColorSpace_Indexed Indexed Color Space

File: /SetaPDF v2/Core/ColorSpace/Indexed.php

Class hierarchy

Implements

Summary

Constants

TYPE_COLOR_SPACE

public const string SetaPDF_Core_Resource::TYPE_COLOR_SPACE = 'ColorSpace'

Type constant

TYPE_EXT_G_STATE

public const string SetaPDF_Core_Resource::TYPE_EXT_G_STATE = 'ExtGState'

Type constant

TYPE_FONT

public const string SetaPDF_Core_Resource::TYPE_FONT = 'Font'

Type constant

TYPE_PATTERN

public const string SetaPDF_Core_Resource::TYPE_PATTERN = 'Pattern'

Type constant

TYPE_PROC_SET

public const string SetaPDF_Core_Resource::TYPE_PROC_SET = 'ProcSet'

Type constant

TYPE_PROPERTIES

public const string SetaPDF_Core_Resource::TYPE_PROPERTIES = 'Properties'

Type constant

TYPE_SHADING

public const string SetaPDF_Core_Resource::TYPE_SHADING = 'Shading'

Type constant

TYPE_X_OBJECT

public const string SetaPDF_Core_Resource::TYPE_X_OBJECT = 'XObject'

Type constant


Properties

$_indirectObject

The indirect object for this color space

$_value


Static Methods

createByDefinition()

public static SetaPDF_Core_ColorSpace::createByDefinition (
$object
):

Creates a color space instance based on the incoming value.

Parameters
$object

A color space definition

Exceptions

Throws InvalidArgumentException

Throws SetaPDF_Core_Type_Exception

Throws SetaPDF_Core_Exception


Methods

__construct()

getBase()

Get the base color space.

Exceptions

Throws SetaPDF_Core_Exception

Throws SetaPDF_Core_Type_Exception

getColorComponents()

Get the color components of this color space.

Exceptions

Throws SetaPDF_Core_Exception

getDefaultDecodeArray()

public SetaPDF_Core_ColorSpace_Indexed::getDefaultDecodeArray (
[ $bitsPerComponent = null ]
):

Get the default decode array of this color space.

Parameters
$bitsPerComponent
 
Exceptions

Throws SetaPDF_Core_Exception

getFamily()

Get the color space family name of this color space.

Exceptions

Throws SetaPDF_Core_Exception

getHival()

Get the maximum valid index value (hival).

Exceptions

Throws SetaPDF_Core_Type_Exception

getIndirectObject()

Gets an indirect object for this color space dictionary.

Parameters
$document : SetaPDF_Core_Document|null
 
Exceptions

Throws InvalidArgumentException

See

getLookupTable()

Get the lookup table.

Exceptions

Throws SetaPDF_Core_Exception

Throws SetaPDF_Core_Type_Exception

getPdfValue()

Get the main color space PDF value.

getResourceType()

Get the resource type of an implementation.