![]() |
BioGTK
6.5.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
|
Manages slide rendering by coordinating between the SkiaStitchingPipeline and SlideGLArea Handles async updates, caching, and progressive rendering for large pyramidal images. More...
Classes | |
| class | CacheStatistics |
Public Member Functions | |
| SKSlideRenderer (SKDrawingArea sk) | |
| Initialize renderer for a specific GLArea widget. | |
| void | SetSource (OpenSlideGTK.OpenSlideBase openSlideSource) |
| Set OpenSlide source and initialize pipeline. | |
| void | SetSource (SlideBase slideSource) |
| Set BioLib slide source and initialize pipeline. | |
| async Task | UpdateViewAsync (PointD origin, double resolution, ZCT coordinate, int width=600, int height=400) |
| Update the rendered view asynchronously - main entry point for rendering. | |
| SKImage | RenderRegion (RectangleD region, int level, ZCT coordinate, double resolution, int pxwidth, int pxheight) |
| Render a specific region synchronously (for exports, small areas) | |
| SKImage | RenderCurrentViewSync () |
| Render current viewport synchronously (blocking) | |
| SKImage | GetCurrentImage () |
| Get the current image for rendering - called by GLArea during draw Returns the best available image (full quality or preview) | |
| void | DrawToCanvas (SKCanvas canvas, int canvasWidth, int canvasHeight) |
| Draw the current image to a canvas with proper scaling Called during the Skia render callback from SlideGLArea. | |
| void | ClearCache () |
| Clear the tile cache. | |
| CacheStatistics | GetCacheStatistics () |
| Get cache statistics for monitoring. | |
| void | UpdateConfiguration (int? maxCacheSizeMB=null, int? tileSize=null, SKSamplingOptions? sampling=null, bool? enablePrefetch=null, bool? enableProgressiveRendering=null) |
| Update renderer configuration and reinitialize if needed. | |
| void | Dispose () |
Properties | |
| int | MaxCacheSizeMB = 512 [get, set] |
| int | TileSize = 256 [get, set] |
| SKSamplingOptions | Sampling = SKSamplingOptions.Default [get, set] |
| bool | EnablePrefetch = true [get, set] |
| bool | IsRendering [get] |
| bool | HasValidImage [get] |
Manages slide rendering by coordinating between the SkiaStitchingPipeline and SlideGLArea Handles async updates, caching, and progressive rendering for large pyramidal images.
Definition at line 15 of file SKSlideRenderer.cs.
| BioGTK.SKSlideRenderer.SKSlideRenderer | ( | SKDrawingArea | sk | ) |
Initialize renderer for a specific GLArea widget.
Definition at line 50 of file SKSlideRenderer.cs.
| void BioGTK.SKSlideRenderer.ClearCache | ( | ) |
Clear the tile cache.
Definition at line 410 of file SKSlideRenderer.cs.
| void BioGTK.SKSlideRenderer.Dispose | ( | ) |
Definition at line 475 of file SKSlideRenderer.cs.
| void BioGTK.SKSlideRenderer.DrawToCanvas | ( | SKCanvas | canvas, |
| int | canvasWidth, | ||
| int | canvasHeight ) |
Draw the current image to a canvas with proper scaling Called during the Skia render callback from SlideGLArea.
Definition at line 330 of file SKSlideRenderer.cs.
| CacheStatistics BioGTK.SKSlideRenderer.GetCacheStatistics | ( | ) |
Get cache statistics for monitoring.
Definition at line 418 of file SKSlideRenderer.cs.
| SKImage BioGTK.SKSlideRenderer.GetCurrentImage | ( | ) |
Get the current image for rendering - called by GLArea during draw Returns the best available image (full quality or preview)
Definition at line 320 of file SKSlideRenderer.cs.
| SKImage BioGTK.SKSlideRenderer.RenderCurrentViewSync | ( | ) |
Render current viewport synchronously (blocking)
Definition at line 298 of file SKSlideRenderer.cs.
| SKImage BioGTK.SKSlideRenderer.RenderRegion | ( | RectangleD | region, |
| int | level, | ||
| ZCT | coordinate, | ||
| double | resolution, | ||
| int | pxwidth, | ||
| int | pxheight ) |
Render a specific region synchronously (for exports, small areas)
Definition at line 284 of file SKSlideRenderer.cs.
| void BioGTK.SKSlideRenderer.SetSource | ( | OpenSlideGTK.OpenSlideBase | openSlideSource | ) |
Set OpenSlide source and initialize pipeline.
Definition at line 71 of file SKSlideRenderer.cs.
| void BioGTK.SKSlideRenderer.SetSource | ( | SlideBase | slideSource | ) |
Set BioLib slide source and initialize pipeline.
Definition at line 88 of file SKSlideRenderer.cs.
| void BioGTK.SKSlideRenderer.UpdateConfiguration | ( | int? | maxCacheSizeMB = null, |
| int? | tileSize = null, | ||
| SKSamplingOptions? | sampling = null, | ||
| bool? | enablePrefetch = null, | ||
| bool? | enableProgressiveRendering = null ) |
Update renderer configuration and reinitialize if needed.
Definition at line 443 of file SKSlideRenderer.cs.
| async Task BioGTK.SKSlideRenderer.UpdateViewAsync | ( | PointD | origin, |
| double | resolution, | ||
| ZCT | coordinate, | ||
| int | width = 600, | ||
| int | height = 400 ) |
Update the rendered view asynchronously - main entry point for rendering.
Definition at line 145 of file SKSlideRenderer.cs.
|
getset |
Definition at line 37 of file SKSlideRenderer.cs.
|
get |
Definition at line 41 of file SKSlideRenderer.cs.
|
get |
Definition at line 40 of file SKSlideRenderer.cs.
|
getset |
Definition at line 34 of file SKSlideRenderer.cs.
|
getset |
Definition at line 36 of file SKSlideRenderer.cs.
|
getset |
Definition at line 35 of file SKSlideRenderer.cs.