setasign\SetaPDF2\Core\ColorSpace

DeviceGray DeviceGray Color Space

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

Class hierarchy

Summary

Properties

$_indirectObject

The indirect object for this color space


Static Methods

create()

public static DeviceGray::create (
void
): self

Creates an instance of this color space.

Exceptions

Throws \setasign\SetaPDF2\Core\Exception

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

getColorComponents()

public DeviceGray::getColorComponents (
void
): int

Get the color components of this color space.

getDefaultDecodeArray()

public DeviceGray::getDefaultDecodeArray (
void
): 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()