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

    Class Eozin

    A decoder that dynamically detects file formats.

    Indexable

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

    Properties

    dimensions: Dimension

    Returns the dimensions (width, height) of the image at the highest resolution (level 0).

    levelCount: number

    Returns the number of levels

    levelDimensions: Dimension[]

    Returns the dimensions for each level as a vector of (width, height) tuples, starting from level 0.

    levelTileRanges: TileRange[]

    Returns the grid range for each level as a vector of (horizontal_tile_count, vertical_tile_count) tuples.

    levelTileSizes: Dimension[]

    Returns the nominal tile size (width, height) for each level.

    slideFormat: string

    Returns the format of slide.

    Methods

    • Returns void

    • Reads the tile at the specified level and coordinates.

      Parameters

      • lv: number
      • x: number
      • y: number

      Returns Promise<Tile>

    • Constructs a new DynamicDecoder with a Blob.

      Parameters

      • blob: Blob

      Returns Promise<Eozin>

    • Constructs a new DynamicDecoder with a File.

      Parameters

      • file: File

      Returns Promise<Eozin>