pub struct ContentInlineImage {
pub image: PdfInlineImage,
pub ctm: Transform2D,
pub clip: Option<Path>,
}Expand description
One BI … ID … EI inline-image event surfaced by the
content-stream walker (ISO 32000-1 §8.9.7). Unlike an Image
XObject (which is named and resolved through /Resources /XObject), an inline image carries its dictionary + payload
directly in the content stream, so the walker is the only place
it can be observed with the correct graphics-state context.
The walker does NOT decode the payload into pixels — that belongs
to the image pipeline. It captures the resolved
PdfInlineImage (dictionary + filter-peeled payload, per
[crate::reader::inline_images]) together with the placement
context that §8.9 / §8.7.3.4 require to position it:
ctm— the composed current transformation matrix at theBI. An inline image is painted into the unit square0 ≤ x,y ≤ 1in image space, mapped to user space by the CTM (§8.9.5.1), soctmis exactly the placement matrix.clip— the most recentW/W*-committed clip path in force, orNone. The image is subject to it (§8.5.4).
Fields§
§image: PdfInlineImageThe resolved inline image — dictionary fields (width, height, colour space, bits-per-component, terminal codec filter, image-mask flag) plus the wrapping-filter-peeled payload.
ctm: Transform2DComposed current transformation matrix at the moment of the
BI operator. Maps the unit-square image space to user space
(§8.9.5.1).
clip: Option<Path>Active clip path (most recent W/W* commit in the live q
frame), or None when no clip is in force (§8.5.4).
Trait Implementations§
Source§impl Clone for ContentInlineImage
impl Clone for ContentInlineImage
Source§fn clone(&self) -> ContentInlineImage
fn clone(&self) -> ContentInlineImage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more