SetaPDF_Core_ColorSpace_Indexed Indexed Color Space
File: /SetaPDF v2/Core/ColorSpace/Indexed.php
Class hierarchy
Implements
Summary
Constants
TYPE_COLOR_SPACE
Type constant
TYPE_EXT_G_STATE
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Properties
Static Methods
createByDefinition()
public static SetaPDF_Core_ColorSpace::createByDefinition (
string|SetaPDF_Core_Type_Name|SetaPDF_Core_Type_Array|SetaPDF_Core_Type_IndirectObjectInterface $object
): SetaPDF_Core_ColorSpace|SetaPDF_Core_ColorSpace_DeviceCmyk|SetaPDF_Core_ColorSpace_DeviceGray|SetaPDF_Core_ColorSpace_DeviceRgb|SetaPDF_Core_ColorSpace_IccBased|SetaPDF_Core_ColorSpace_SeparationCreates a color space instance based on the incoming value.
Parameters
- $object : string|SetaPDF_Core_Type_Name|SetaPDF_Core_Type_Array|SetaPDF_Core_Type_IndirectObjectInterface
A color space definition
Exceptions
Throws InvalidArgumentException
Throws SetaPDF_Core_Type_Exception
Throws SetaPDF_Core_Exception
Methods
__construct()
getBase()
public SetaPDF_Core_ColorSpace_Indexed::getBase (
void
): SetaPDF_Core_ColorSpace|SetaPDF_Core_ColorSpace_DeviceCmyk|SetaPDF_Core_ColorSpace_DeviceGray|SetaPDF_Core_ColorSpace_DeviceRgb|SetaPDF_Core_ColorSpace_IccBased|SetaPDF_Core_ColorSpace_SeparationGet the base color space.
Exceptions
Throws SetaPDF_Core_Exception
Throws SetaPDF_Core_Type_Exception
getColorComponents()
getDefaultDecodeArray()
public SetaPDF_Core_ColorSpace_Indexed::getDefaultDecodeArray (
[ int $bitsPerComponent = null ]
): arrayGet the default decode array of this color space.
Parameters
- $bitsPerComponent : int
Exceptions
Throws SetaPDF_Core_Exception
getFamily()
getHival()
getIndirectObject()
public SetaPDF_Core_ColorSpace_Resource::getIndirectObject (
[ SetaPDF_Core_Document $document = null ]
): SetaPDF_Core_Type_IndirectObjectInterfaceGets an indirect object for this color space dictionary.
Parameters
- $document : SetaPDF_Core_Document
Exceptions
Throws InvalidArgumentException
See
getLookupTable()
getPdfValue()
public SetaPDF_Core_ColorSpace::getPdfValue (
void
): SetaPDF_Core_Type_Name|SetaPDF_Core_Type_ArrayGet the main color space PDF value.