setasign\SetaPDF2\Core\ColorSpace
DeviceRgb DeviceRGB Color Space
File: /SetaPDF v2/Core/ColorSpace/DeviceRgb.php
Old class name (alias):
\SetaPDF_Core_ColorSpace_DeviceRgb
Class hierarchy
Summary
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
Exceptions
Throws \InvalidArgumentException,\setasign\SetaPDF2\Core\Exception
getPdfValue()
public ColorSpace::getPdfValue (
void
): \setasign\SetaPDF2\Core\Type\PdfName|\setasign\SetaPDF2\Core\Type\PdfArrayGet the main color space PDF value.