Contains the encoded tile byte sequence, dimensions, and image format information.
This struct implements Deref<Target = [u8]> and AsRef<[u8]>, allowing it to be used directly as an encoded byte slice.
Deref<Target = [u8]>
AsRef<[u8]>
# #[cfg(feature= "std-io")] # { # use eozin::{std_io::DynamicDecoder, Tile}; # let mut decoder = DynamicDecoder::with_path("/some/slide.svs").unwrap(); let tile: Tile = decoder.read_tile(0, 0, 0).unwrap(); std::fs::write("output.jpg", &tile).unwrap(); # } Copy
# #[cfg(feature= "std-io")] # { # use eozin::{std_io::DynamicDecoder, Tile}; # let mut decoder = DynamicDecoder::with_path("/some/slide.svs").unwrap(); let tile: Tile = decoder.read_tile(0, 0, 0).unwrap(); std::fs::write("output.jpg", &tile).unwrap(); # }
Height of the tile.
Readonly
Returns the MIME type of the encoded tile image.
Width of the tile.
Returns the raw encoded tile buffer as a Uint8Array. No format conversion is performed.
Uint8Array
This method requires the wasm-node or wasm-web feature.
wasm-node
wasm-web
Contains the encoded tile byte sequence, dimensions, and image format information.
This struct implements
Deref<Target = [u8]>andAsRef<[u8]>, allowing it to be used directly as an encoded byte slice.