PdfInkColorants class
A paint's colorants together with the overprint semantics of the colour space it came from - everything over needs to decide which of the device's colorants this ink writes.
Constructors
-
PdfInkColorants({required PdfColorants colorants, required int processMask, required bool overprintModeApplies, bool writesAll = false, List<
List< spotEquivalents = const []})double> > - PdfInkColorants.deviceCmyk(double c, double m, double y, double k)
- The four process colorants, as DeviceCMYK writes them: all four are specified, and the overprint-mode-1 zero rule applies (§8.6.7.3).
- PdfInkColorants.deviceGray(double level)
-
DeviceGray, which §8.6.7 writes as the process colorants
(0, 0, 0, 1 -
level) - so a neutral grey knocks a process backdrop out to grey rather than merely darkening it. The overprint-mode-1 zero rule is DeviceCMYK's alone, which is why 50% grey over CMYK grades the same under both modes.
Properties
- colorants → PdfColorants
-
The tints this ink carries.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- overprintModeApplies → bool
-
Whether the overprint-mode-1 rule (§8.6.7.3: a component of 0.0 is not
written, so it cannot erase the backdrop) applies to this space.
final
- processMask → int
-
Which process colorants the source space specifies (a mask of
kColorantCyan &c). DeviceCMYK and DeviceGray specify all four -
DeviceGray as (0, 0, 0, 1 - gray), which is why a neutral grey knocks a
process backdrop out to grey rather than merely darkening it. A
Separation/DeviceN space specifies only the process colorants it names.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spotEquivalents
→ List<
List< double> > -
CMYK equivalent (four components) of each spot in colorants
.spotsat full tint, parallel to that list. Lets a composite vector that names a spot no single paint produced still convert to sRGB.final - writesAll → bool
-
Separation
/All(§8.6.6.4): the tint is applied to every colorant the device has, including spot colorants only the backdrop carries.final - writesNothing → bool
-
Whether painting this ink writes no colorant at all (
/None).no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
over(
PdfColorants backdrop, int mode) → PdfColorants -
The colorant vector left behind by painting this ink, with overprint
enabled under overprint mode
mode, over the backdropbackdrop. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited