![]() |
BioImager
4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
|
Public Member Functions | |
| bool | UploadTileTexture (TileIndex index, byte[] pixelData, int tileWidth, int tileHeight) |
| Upload a tile texture to the GPU. Call from the main thread. Returns true if upload succeeded. | |
| 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 [get] |
| bool | IsGLReady [get] |
| True after the GL context has been fully initialized and is ready for texture uploads and rendering. | |
Events | |
| EventHandler | GLReady |
| Fires exactly once after the GL context has been successfully initialized. Subscribe to this from ImageView to trigger the first tile load at a point where GL texture uploads are guaranteed to work. | |
Definition at line 14 of file SlideGLArea.cs.
| BioImager.SlideGLArea.SlideGLArea | ( | ) |
Definition at line 114 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.ClearTextureCache | ( | ) |
Clear all cached textures.
Definition at line 465 of file SlideGLArea.cs.
| bool BioImager.SlideGLArea.HasTileTexture | ( | TileIndex | index | ) |
Check if a tile texture is already in the GPU cache.
Definition at line 427 of file SlideGLArea.cs.
| byte[] BioImager.SlideGLArea.ReadPixels | ( | ) |
Read pixels from the current framebuffer (for export/save operations). This is slow — only use for export, not display.
Definition at line 514 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.ReleaseLevelTextures | ( | int | level | ) |
Release all textures for a specific pyramid level.
Definition at line 448 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.ReleaseTileTexture | ( | TileIndex | index | ) |
Release a specific tile texture.
Definition at line 435 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.RequestRedraw | ( | ) |
Request a redraw of the GLArea.
Definition at line 495 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.SetTilesToRender | ( | IEnumerable< TileRenderInfo > | tiles | ) |
Prepare tiles for rendering. Call before RequestRedraw().
Definition at line 504 of file SlideGLArea.cs.
| bool BioImager.SlideGLArea.UploadTileTexture | ( | TileIndex | index, |
| byte[] | pixelData, | ||
| int | tileWidth, | ||
| int | tileHeight ) |
Upload a tile texture to the GPU. Call from the main thread. Returns true if upload succeeded.
Definition at line 351 of file SlideGLArea.cs.
|
get |
True after the GL context has been fully initialized and is ready for texture uploads and rendering.
Definition at line 61 of file SlideGLArea.cs.
|
get |
Definition at line 43 of file SlideGLArea.cs.
|
get |
Definition at line 42 of file SlideGLArea.cs.
| EventHandler BioImager.SlideGLArea.GLReady |
Fires exactly once after the GL context has been successfully initialized. Subscribe to this from ImageView to trigger the first tile load at a point where GL texture uploads are guaranteed to work.
Definition at line 54 of file SlideGLArea.cs.