Struct pdf::object::ImageXObject
source · pub struct ImageXObject {
pub inner: Stream<ImageDict>,
}
Fields§
§inner: Stream<ImageDict>
Implementations§
source§impl ImageXObject
impl ImageXObject
pub fn from_stream(s: PdfStream, resolve: &impl Resolve) -> Result<Self>
sourcepub fn raw_image_data(
&self,
resolve: &impl Resolve
) -> Result<(Arc<[u8]>, Option<&StreamFilter>)>
pub fn raw_image_data( &self, resolve: &impl Resolve ) -> Result<(Arc<[u8]>, Option<&StreamFilter>)>
Decode everything except for the final image encoding (jpeg, jbig2, jp2k, …)
pub fn image_data(&self, resolve: &impl Resolve) -> Result<Arc<[u8]>>
Trait Implementations§
source§impl Clone for ImageXObject
impl Clone for ImageXObject
source§fn clone(&self) -> ImageXObject
fn clone(&self) -> ImageXObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl DataSize for ImageXObject
impl DataSize for ImageXObject
source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true
, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 72usize
const STATIC_HEAP_SIZE: usize = 72usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC
is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
source§impl Debug for ImageXObject
impl Debug for ImageXObject
source§impl DeepClone for ImageXObject
impl DeepClone for ImageXObject
fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self>
source§impl Deref for ImageXObject
impl Deref for ImageXObject
source§impl Object for ImageXObject
impl Object for ImageXObject
source§impl ObjectWrite for ImageXObject
impl ObjectWrite for ImageXObject
Auto Trait Implementations§
impl RefUnwindSafe for ImageXObject
impl Send for ImageXObject
impl Sync for ImageXObject
impl Unpin 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