Class SKImagePyramidTileLayout
Computes tile geometry for the ImagePyramid pipeline: which tiles are visible, what fallback tiles exist, and where tiles should be drawn on screen. Works with any ISKImagePyramidSource including DZI and IIIF sources.
public class SKImagePyramidTileLayout
- Inheritance
-
SKImagePyramidTileLayout
- Inherited Members
Constructors
Methods
- FindBestFallback(SKImagePyramidTileId, ISKImagePyramidTileCache, int)
For a missing tile, finds the best available parent tile as a fallback. Walks up the pyramid from the requested level until a cached tile is found.
- GetFallbackSourceRect(SKImagePyramidTileId, SKImagePyramidTileId, ISKImagePyramidSource)
Computes the source rect within a parent tile that corresponds to the child tile. Returns an SKRect in parent-bitmap pixel coordinates.
- GetTileDestRect(ISKImagePyramidSource, SKImagePyramidViewport, SKImagePyramidTileId)
Computes the screen-space destination rect for a tile given the current viewport. Previously on SKImagePyramidRenderer; moved here because it is pure geometry, independent of any rendering backend.
- GetVisibleTiles(ISKImagePyramidSource, SKImagePyramidViewport)
Computes the set of tiles visible in the current viewport at the optimal level.