PdfImageColorants class
The device colorants an image XObject's samples carry.
uniformInk is non-null only when every sample carries the same colorants, which is what the buffer can record as a backdrop: it stores one colorant vector per cell, and a device paints one colour per call, so an image whose colorants vary reads as "unknown" exactly as it did before.
Constructors
- PdfImageColorants({required PdfInkColorants? uniformInk, required PdfColor uniformColor, required bool coversQuad})
-
const
Properties
- backdropInk → PdfInkColorants?
-
The ink the buffer may record over the image's whole quad - uniformInk
only when it also coversQuad.
no setter
- coversQuad → bool
-
Whether painting the image lays ink down over its whole unit square - no
/SMask, no stencil /Mask, no colour-key /Mask. A masked raster still
has a colorant reading (it can be composited onto a backdrop), but the
buffer must not record it as a backdrop of its own: the backdrop survives
wherever the mask is transparent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uniformColor → PdfColor
-
The sRGB uniformInk renders as; meaningless when uniformInk is null.
final
- uniformInk → PdfInkColorants?
-
The ink every sample of the image carries, or null when they differ.
final
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