TiledImageLevel

data class TiledImageLevel(val tilePixelSize: IntSize, val contentUnitsPerPixel: Long)(source)

Describes one immutable resolution level in a tiled raster source.

Each source pixel covers a square of TiledImageLevel.contentUnitsPerPixel content units. Multiplying that value by TiledImageLevel.tilePixelSize gives the content extent of one tile at this level. Sources list levels from finest to coarsest and keep this geometry unchanged for their entire identity lifetime.

Throws

when a pixel extent or unit scale is not positive.

when a tile's content extent exceeds a Long.

Constructors

Link copied to clipboard
constructor(tilePixelSize: IntSize, contentUnitsPerPixel: Long)

Properties

Link copied to clipboard

positive number of content-coordinate units represented by one source pixel on both axes.

Link copied to clipboard

exact positive pixel extent required from every ready tile at this level.