Eozin JS SDK v0.1.0-alpha.2
    Preparing search index...

    Class Tile

    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.

    # #[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();
    # }
    

    Indexable

    • [key: number]: () => void
    Index

    Properties

    height: number

    Height of the tile.

    mimeType: string

    Returns the MIME type of the encoded tile image.

    width: number

    Width of the tile.

    Methods

    • Returns void

    • Returns the raw encoded tile buffer as a Uint8Array. No format conversion is performed.

      This method requires the wasm-node or wasm-web feature.

      Returns Uint8Array