![]() |
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.
|
A GTK GLArea widget that renders pyramidal slide tiles directly on the GPU. Eliminates ReadPixels overhead by rendering to screen instead of copying to CPU. Supports SkiaSharp overlay for annotations via GRContext. More...
Public Member Functions | |
| void | UploadTileTexture (TileIndex index, byte[] pixelData, int tileWidth, int tileHeight) |
| Upload a tile texture to the GPU. Call from the main thread. | |
| bool | HasTileTexture (TileIndex index) |
| Check if a tile texture is already in the GPU cache. | |
| void | ReleaseTileTexture (TileIndex index) |
| Release a specific tile texture. | |
| void | ReleaseLevelTextures (int level) |
| Release all textures for a specific pyramid level. | |
| void | ClearTextureCache () |
| Clear all cached textures. | |
| void | RequestRedraw () |
| Request a redraw of the GLArea. | |
| void | SetTilesToRender (IEnumerable< TileRenderInfo > tiles) |
| Prepare tiles for rendering. Call before RequestRedraw(). | |
| byte[] | ReadPixels () |
| Read pixels from the current framebuffer (for export/save operations). This is slow - only use for export, not display. | |
Properties | |
| List< TileRenderInfo > | TilesToRender = new() [get] |
| bool | NeedsRedraw = true [get, set] |
Events | |
| Action< SKCanvas, int, int > | OnSkiaRender |
| Event fired during Skia rendering phase for annotation drawing. | |
A GTK GLArea widget that renders pyramidal slide tiles directly on the GPU. Eliminates ReadPixels overhead by rendering to screen instead of copying to CPU. Supports SkiaSharp overlay for annotations via GRContext.
Definition at line 19 of file SlideGLArea.cs.
| BioGTK.SlideGLArea.SlideGLArea | ( | ) |
Definition at line 115 of file SlideGLArea.cs.
| void BioGTK.SlideGLArea.ClearTextureCache | ( | ) |
Clear all cached textures.
Definition at line 481 of file SlideGLArea.cs.
| bool BioGTK.SlideGLArea.HasTileTexture | ( | TileIndex | index | ) |
Check if a tile texture is already in the GPU cache.
Definition at line 443 of file SlideGLArea.cs.
| byte[] BioGTK.SlideGLArea.ReadPixels | ( | ) |
Read pixels from the current framebuffer (for export/save operations). This is slow - only use for export, not display.
Definition at line 532 of file SlideGLArea.cs.
| void BioGTK.SlideGLArea.ReleaseLevelTextures | ( | int | level | ) |
Release all textures for a specific pyramid level.
Definition at line 464 of file SlideGLArea.cs.
| void BioGTK.SlideGLArea.ReleaseTileTexture | ( | TileIndex | index | ) |
Release a specific tile texture.
Definition at line 451 of file SlideGLArea.cs.
| void BioGTK.SlideGLArea.RequestRedraw | ( | ) |
Request a redraw of the GLArea.
Definition at line 512 of file SlideGLArea.cs.
| void BioGTK.SlideGLArea.SetTilesToRender | ( | IEnumerable< TileRenderInfo > | tiles | ) |
Prepare tiles for rendering. Call before RequestRedraw().
Definition at line 521 of file SlideGLArea.cs.
| void BioGTK.SlideGLArea.UploadTileTexture | ( | TileIndex | index, |
| byte[] | pixelData, | ||
| int | tileWidth, | ||
| int | tileHeight ) |
Upload a tile texture to the GPU. Call from the main thread.
Definition at line 390 of file SlideGLArea.cs.
|
getset |
Definition at line 56 of file SlideGLArea.cs.
|
get |
Definition at line 55 of file SlideGLArea.cs.
| Action<SKCanvas, int, int> BioGTK.SlideGLArea.OnSkiaRender |
Event fired during Skia rendering phase for annotation drawing.
Definition at line 61 of file SlideGLArea.cs.