pub struct Image {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub data: Option<Vec<u8>>,
pub scale_factor: Option<f64>,
pub original_orientation_angle: Option<i32>,
pub image_type: Option<String>,
}Expand description
Embedded image bounds, used for selective OCR.
Fields§
§x: f64§y: f64§width: f64§height: f64§data: Option<Vec<u8>>Decoded image bytes in memory. When present, OCR runs directly on these bytes; otherwise the engine re-renders the region from the PDF.
scale_factor: Option<f64>§original_orientation_angle: Option<i32>§image_type: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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