Struct DeepZoomGenerator

Source
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>

Source

pub fn new( slide: B, tile_size: u32, overlap: u32, limit_bounds: bool, ) -> Result<Self>

Source

pub fn level_count(&self) -> usize

Source

pub fn level_tiles(&self) -> &[Size]

Source

pub fn level_dimensions(&self) -> &[Size]

Source

pub fn tile_count(&self) -> u32

Source

pub fn get_tile_rgba(&self, level: u32, location: Address) -> Result<RgbaImage>

Source

pub fn get_tile_rgb(&self, level: u32, location: Address) -> Result<RgbImage>

Source

pub fn get_tile_info( &self, level: u32, address: Address, ) -> Result<(Region, Size)>

Trait Implementations§

Source§

impl<S: Debug + Slide, B: Debug + Borrow<S>> Debug for DeepZoomGenerator<S, B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<S, B> Freeze for DeepZoomGenerator<S, B>
where B: Freeze,

§

impl<S, B> RefUnwindSafe for DeepZoomGenerator<S, B>

§

impl<S, B> Send for DeepZoomGenerator<S, B>
where B: Send, S: Send,

§

impl<S, B> Sync for DeepZoomGenerator<S, B>
where B: Sync, S: Sync,

§

impl<S, B> Unpin for DeepZoomGenerator<S, B>
where B: Unpin, S: Unpin,

§

impl<S, B> UnwindSafe for DeepZoomGenerator<S, B>
where B: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.