enum final Optional · pdftoolkit/pdf-images 0.1.7

PDF\Images\PngColorType
PNG colour type codes, distinct from the PDF image colour space.

Read the source declaration ↗

Inheritance and contracts

Interfaces : BackedEnum, UnitEnum

Declared methods

cases()

public static function cases(): array

Declared by PDF\Images\PngColorType · View the code ↗

colorSpace()

public function colorSpace(): PDF\Document\Images\DeviceColorSpace

Declared by PDF\Images\PngColorType · View the code ↗

components()

public function components(): int

Declared by PDF\Images\PngColorType · View the code ↗

from()

public static function from(string|int $value): static

Declared by PDF\Images\PngColorType · View the code ↗

tryFrom()

public static function tryFrom(string|int $value): ?static

Declared by PDF\Images\PngColorType · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly string $namePDF\Images\PngColorType
public readonly int $valuePDF\Images\PngColorType

Enum cases

  • Gray = 0
  • RGB = 2
  • Indexed = 3
  • GrayAlpha = 4
  • RGBA = 6