PdfColor class
An RGB color with components in 0..1, the renderer's common currency. Device color spaces convert into it; ICC-based spaces approximate for now.
Constructors
- PdfColor(double red, double green, double blue)
-
const
- PdfColor.cmyk(double cyan, double magenta, double yellow, double black)
-
DeviceCMYK → sRGB via the same SWOP-class polynomial pdf.js uses
(
DeviceCmykCS, a least-squares fit to a US Web Coated profile). Each output channel is a quadratic in (c, m, y, k); this matches pdf.js's rendering of process CMYK far more closely than a halftone or complement model - e.g.0 0 0 0.89 k→ RGB(69,71,77), not the halftone (28,28,28). Adopted so corpus/print colour matches the reference renderer across the board.factory - PdfColor.gray(double level)
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override