Class SKImagePyramidRenderer
SkiaSharp implementation of ISKImagePyramidRenderer. Draws Deep Zoom tiles onto an SKCanvas.
public class SKImagePyramidRenderer : ISKImagePyramidRenderer, IDisposable
- Inheritance
-
SKImagePyramidRenderer
- Implements
- Inherited Members
Remarks
Set Canvas before calling Render(ISKImagePyramidRenderer). The canvas reference is only used during the render call and should not be stored beyond the scope of the paint callback. The two-pass LOD blending logic is controlled by EnableLodBlending.
Constructors
Properties
- Canvas
The canvas to draw onto. Set this before each frame by the caller, then pass this renderer to Render(ISKImagePyramidRenderer).
Methods
- BeginRender()
Called before any tile draw calls for a render frame. Use this to set up state (e.g., save canvas, clear background).
- DrawFallbackTile(SKRect, SKRect, SKImagePyramidTile)
Draws a lower-resolution fallback tile stretched to fill the destination rect. Only called when LOD blending is enabled and the hi-res tile is still loading.
- DrawTile(SKRect, SKImagePyramidTile)
Draws a hi-resolution tile at the exact detail level requested.
- EndRender()
Called after all tile draw calls for a render frame. Use this to flush state (e.g., restore canvas).