pub struct DeepZoomGenerator<S: Slide, B: Borrow<S>> { /* private fields */ }
Expand description
Generates Deep Zoom tiles and metadata.
Implementations§
Source§impl<S: Slide, B: Borrow<S>> DeepZoomGenerator<S, B>
impl<S: Slide, B: Borrow<S>> DeepZoomGenerator<S, B>
pub fn new( slide: B, tile_size: u32, overlap: u32, limit_bounds: bool, ) -> Result<Self>
pub fn level_count(&self) -> usize
pub fn level_tiles(&self) -> &[Size]
pub fn level_dimensions(&self) -> &[Size]
pub fn tile_count(&self) -> u32
pub fn get_tile_rgba(&self, level: u32, location: Address) -> Result<RgbaImage>
pub fn get_tile_rgb(&self, level: u32, location: Address) -> Result<RgbImage>
pub fn get_tile_info( &self, level: u32, address: Address, ) -> Result<(Region, Size)>
Trait Implementations§
Auto Trait Implementations§
impl<S, B> Freeze for DeepZoomGenerator<S, B>where
B: Freeze,
impl<S, B> RefUnwindSafe for DeepZoomGenerator<S, B>where
B: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, B> Send for DeepZoomGenerator<S, B>
impl<S, B> Sync for DeepZoomGenerator<S, B>
impl<S, B> Unpin for DeepZoomGenerator<S, B>
impl<S, B> UnwindSafe for DeepZoomGenerator<S, B>where
B: UnwindSafe,
S: UnwindSafe,
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