pub struct ExtractedImage {
pub chunk: ImageChunk,
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub color_space: String,
pub bits_per_component: u8,
pub filter: String,
}Expand description
Extracted image data from a PDF page.
Fields§
§chunk: ImageChunkImage chunk with bounding box info
data: Vec<u8>Raw image data (decoded from stream)
width: u32Image width in pixels
height: u32Image height in pixels
color_space: StringColor space name
bits_per_component: u8Bits per component
filter: StringFilter name (e.g., “DCTDecode” for JPEG, “FlateDecode” for PNG)
Trait Implementations§
Source§impl Clone for ExtractedImage
impl Clone for ExtractedImage
Source§fn clone(&self) -> ExtractedImage
fn clone(&self) -> ExtractedImage
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ExtractedImage
impl RefUnwindSafe for ExtractedImage
impl Send for ExtractedImage
impl Sync for ExtractedImage
impl Unpin for ExtractedImage
impl UnsafeUnpin for ExtractedImage
impl UnwindSafe for ExtractedImage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more