pub struct ImageXObject {
pub width_px: u32,
pub height_px: u32,
pub color_space: ColorSpace,
pub bits_per_component: u8,
pub filter: ImageDataFilter,
pub bytes: Vec<u8>,
pub smask: Option<Box<ImageXObject>>,
}Expand description
One embeddable /Subtype /Image XObject (ISO 32000-1 8.9.5), named for
that specific PDF construct the same way CidFont is named for its
(Type0/CIDFontType2) construct, rather than for the generic Pdf-noun
pattern used by PdfPage/PdfDocument/PdfWriter (those name the
crate’s document-structure types; this and CidFont name embeddable
resource types). smask, if present, is itself an ImageXObject
(always DeviceGray, filter: None, no further smask) — PNG alpha,
per ADR-013.
Fields§
§width_px: u32§height_px: u32§color_space: ColorSpace§bits_per_component: u8§filter: ImageDataFilter§bytes: Vec<u8>§smask: Option<Box<ImageXObject>>Auto Trait Implementations§
impl Freeze for ImageXObject
impl RefUnwindSafe for ImageXObject
impl Send for ImageXObject
impl Sync for ImageXObject
impl Unpin for ImageXObject
impl UnsafeUnpin for ImageXObject
impl UnwindSafe for ImageXObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more