pub struct ImageObject {
pub image: Arc<ImageData>,
pub matrix: Affine,
pub is_mask: bool,
pub oc: Option<Arc<Dict>>,
pub source: Option<ObjRef>,
}Expand description
An image, decoded.
Fields§
§image: Arc<ImageData>The pixels, shared with the session cache.
matrix: AffineThe matrix taking the unit square onto the image’s place on the page.
is_mask: boolWhether the image is a stencil painted with the fill colour.
oc: Option<Arc<Dict>>The /OC entry from the image XObject’s own dictionary.
An image carries optional-content membership on the XObject rather
than through a marked-content sequence, so this is a second, separate
place visibility is declared and not a cache of the first. An inline
image has no dictionary of its own to declare it in.
source: Option<ObjRef>The XObject this image was drawn from, when it was a named resource.
The pixels here are decoded, and a regenerated stream must name the
undecoded stream a Do can reach — so the reference travels with the
object. None for an inline image, which has no indirect object to
name and is therefore dropped when its stream is rewritten.
Trait Implementations§
Source§impl Clone for ImageObject
impl Clone for ImageObject
Source§fn clone(&self) -> ImageObject
fn clone(&self) -> ImageObject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more