setasign\SetaPDF2\Core\ColorSpace

ColorSpace Default implementation of a color space

File: /SetaPDF v2/Core/ColorSpace/ColorSpace.php
Old class name (alias): \SetaPDF_Core_ColorSpace

Class hierarchy

Summary

Properties

$_indirectObject

The indirect object for this color space


Static Methods

createByDefinition()

Creates a color space instance based on the incoming value.

Parameters
$object: string|\setasign\SetaPDF2\Core\Type\AbstractType

A color space definition

Exceptions

Throws \InvalidArgumentException

Throws \setasign\SetaPDF2\Core\Type\Exception

Throws \setasign\SetaPDF2\Core\Exception


Methods

__construct()

The constructor.

Parameters
$value: \setasign\SetaPDF2\Core\Type\AbstractType

A color space definition

getColorComponents()

public ColorSpace::getColorComponents (
void
): int

Get the color components of this color space.

getDefaultDecodeArray()

public ColorSpace::getDefaultDecodeArray (
void
): int[]|float[]

Get the default decode array of this color space.

getFamily()

public ColorSpace::getFamily (
void
): string

Get the color space family name of this color space.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

getPdfValue()