PdfColorspace enum

The colorspace of a PDF image object, corresponding to the FPDF_COLORSPACE_* constants in fpdf_edit.h.

Raw PDFium integer constants are not exposed in the public API; all colorspaces are mapped to this enum. Use unknown as the fallback for any value not recognised by this version of the library.

Inheritance
Available extensions

Values

unknown → const PdfColorspace

FPDF_COLORSPACE_UNKNOWN = 0 — colorspace not identified.

deviceGray → const PdfColorspace

FPDF_COLORSPACE_DEVICEGRAY = 1 — single-channel grey.

deviceRgb → const PdfColorspace

FPDF_COLORSPACE_DEVICERGB = 2 — additive RGB.

deviceCmyk → const PdfColorspace

FPDF_COLORSPACE_DEVICECMYK = 3 — subtractive CMYK.

calGray → const PdfColorspace

FPDF_COLORSPACE_CALGRAY = 4 — calibrated greyscale.

calRgb → const PdfColorspace

FPDF_COLORSPACE_CALRGB = 5 — calibrated RGB.

lab → const PdfColorspace

FPDF_COLORSPACE_LAB = 6 — CIE Lab*.

iccBased → const PdfColorspace

FPDF_COLORSPACE_ICCBASED = 7 — ICC profile-based colorspace.

separation → const PdfColorspace

FPDF_COLORSPACE_SEPARATION = 8 — separation (spot colour).

deviceN → const PdfColorspace

FPDF_COLORSPACE_DEVICEN = 9 — DeviceN (multi-ink).

indexed → const PdfColorspace

FPDF_COLORSPACE_INDEXED = 10 — indexed / palette.

pattern → const PdfColorspace

FPDF_COLORSPACE_PATTERN = 11 — pattern colorspace.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PdfColorspace>
A constant List of the values in this enum, in order of their declaration.