Table of Contents

Method GetTileDestRect

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

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.

public SKRect GetTileDestRect(ISKImagePyramidSource tileSource, SKImagePyramidViewport viewport, SKImagePyramidTileId tileId)

Parameters

tileSource ISKImagePyramidSource
viewport SKImagePyramidViewport
tileId SKImagePyramidTileId

Returns

SKRect

Remarks

Corners are pixel-snapped using floor/ceiling so that adjacent tiles share the same integer pixel boundary, eliminating sub-pixel gaps that cause flickering seams. Returns an SKRect in screen-pixel coordinates.