pub struct ExtractOptions {
pub dpi: u32,
pub format: ImageFormat,
pub colorspace: ColorSpace,
pub background: Option<[u8; 3]>,
pub parallel: usize,
pub progress_callback: Option<Box<dyn Fn(usize, usize) + Send + Sync>>,
}Expand description
Image extraction options
Fields§
§dpi: u32Output DPI
format: ImageFormatOutput format
colorspace: ColorSpaceColor space
background: Option<[u8; 3]>Background color (for transparency handling)
parallel: usizeNumber of parallel workers
progress_callback: Option<Box<dyn Fn(usize, usize) + Send + Sync>>Progress callback
Implementations§
Source§impl ExtractOptions
impl ExtractOptions
Sourcepub fn builder() -> ExtractOptionsBuilder
pub fn builder() -> ExtractOptionsBuilder
Create a new options builder
Sourcepub fn high_quality() -> Self
pub fn high_quality() -> Self
Create options for high quality extraction
Trait Implementations§
Source§impl Debug for ExtractOptions
impl Debug for ExtractOptions
Auto Trait Implementations§
impl Freeze for ExtractOptions
impl !RefUnwindSafe for ExtractOptions
impl Send for ExtractOptions
impl Sync for ExtractOptions
impl Unpin for ExtractOptions
impl !UnwindSafe for ExtractOptions
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().