pub struct ImageExportOptions {
pub format: ImageFormat,
pub dpi: u32,
pub jpeg_quality: u8,
pub width: u32,
pub height: u32,
pub slide_number: usize,
}Expand description
Options for image export
Fields§
§format: ImageFormatImage format (PNG or JPEG)
dpi: u32DPI/resolution (default 150)
jpeg_quality: u8JPEG quality (0-100, default 90)
width: u32Output width in pixels (0 = auto based on DPI)
height: u32Output height in pixels (0 = auto based on DPI)
slide_number: usizeExport all slides or specific slide (0 = all, 1+ = specific slide)
Implementations§
Source§impl ImageExportOptions
impl ImageExportOptions
Sourcepub fn with_format(self, format: ImageFormat) -> Self
pub fn with_format(self, format: ImageFormat) -> Self
Set image format
Sourcepub fn with_jpeg_quality(self, quality: u8) -> Self
pub fn with_jpeg_quality(self, quality: u8) -> Self
Set JPEG quality
Sourcepub fn with_dimensions(self, width: u32, height: u32) -> Self
pub fn with_dimensions(self, width: u32, height: u32) -> Self
Set output dimensions
Sourcepub fn with_slide(self, slide: usize) -> Self
pub fn with_slide(self, slide: usize) -> Self
Set specific slide to export (1-based, 0 = all)
Sourcepub fn high_quality() -> Self
pub fn high_quality() -> Self
High quality preset (300 DPI, PNG)
Sourcepub fn web_optimized() -> Self
pub fn web_optimized() -> Self
Web optimized preset (96 DPI, JPEG)
Trait Implementations§
Source§impl Clone for ImageExportOptions
impl Clone for ImageExportOptions
Source§fn clone(&self) -> ImageExportOptions
fn clone(&self) -> ImageExportOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageExportOptions
impl Debug for ImageExportOptions
Auto Trait Implementations§
impl Freeze for ImageExportOptions
impl RefUnwindSafe for ImageExportOptions
impl Send for ImageExportOptions
impl Sync for ImageExportOptions
impl Unpin for ImageExportOptions
impl UnsafeUnpin for ImageExportOptions
impl UnwindSafe for ImageExportOptions
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