PdfImageRequest class

An image draw request. Decoding is left to the device, which may have platform codecs (and may need to be async - devices can pre-collect).

Constructors

PdfImageRequest({required CosStream stream, required PdfMatrix transform, double alpha = 1, bool isStencil = false, PdfColor stencilColor = PdfColor.black, bool isInline = false, bool isLuminosityMask = false, PdfDecodedPixels? decoded, CosReference? sourceReference})

Properties

alpha → double
final
decoded → PdfDecodedPixels?
Worker-decoded pixels that have not yet been handed off to an engine image. A retained-scene consumer may release this CPU payload after the corresponding engine image is live; the source stream/reference remains available for a later cache miss to decode again.
no setter
decodedHeight → int?
final
decodedWidth → int?
Dimensions of the worker payload, retained after releaseDecodedPixels so inline-image cache identity does not change during the handoff.
final
hashCode → int
The hash code for this object.
no setterinherited
isInline → bool
True for inline images (BI .. ID .. EI). Their stream is synthesized fresh on every interpretation pass, so consumers that cache decoded pixels must key them by value, not stream identity.
final
isLuminosityMask → bool
True when this image is being painted into a luminosity soft-mask group. Device samples must then retain their native mask luminance instead of being colour-managed for page preview. In particular, DeviceGray 0/1 must remain exact black/white even when the document has a CMYK OutputIntent.
final
isStencil → bool
True for /ImageMask stencils, which paint stencilColor through the mask instead of carrying their own colors (§8.9.6.2).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceReference → CosReference?
Indirect object identity for a worker command that deliberately omitted the stream bytes. The consumer resolves this against its copy of the same document revision before decoding. Null for ordinary interpreter draws, direct streams, inline images, and legacy command buffers.
final
stencilColor → PdfColor
The fill color in effect when a stencil mask is drawn.
final
stream → CosStream
final
transform → PdfMatrix
Maps the unit square (image space, y-up) to page space.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
releaseDecodedPixels() → void
Releases the worker's CPU-side RGBA payload after an engine image has successfully adopted the same pixels.
retainDecodedPixels(PdfDecodedPixels pixels) → void
Keeps locally decoded RGBA available for a one-time accelerated upload.
toString() → String
A string representation of this object.
inherited
withTransform(PdfMatrix value) → PdfImageRequest
Copies this request with new geometry while preserving its image-map key.

Operators

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