![]() |
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 | SetOverlayBitmap (System.Drawing.Bitmap bitmap) |
| void | ClearOverlayBitmap () |
| 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. | |
| int | CachedTextureCount [get] |
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 120 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.ClearOverlayBitmap | ( | ) |
Definition at line 696 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.ClearTextureCache | ( | ) |
Clear all cached textures.
Definition at line 618 of file SlideGLArea.cs.
| bool BioImager.SlideGLArea.HasTileTexture | ( | TileIndex | index | ) |
Check if a tile texture is already in the GPU cache.
Definition at line 580 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 720 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.ReleaseLevelTextures | ( | int | level | ) |
Release all textures for a specific pyramid level.
Definition at line 601 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.ReleaseTileTexture | ( | TileIndex | index | ) |
Release a specific tile texture.
Definition at line 588 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.RequestRedraw | ( | ) |
Request a redraw of the GLArea.
Definition at line 648 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.SetOverlayBitmap | ( | System.Drawing.Bitmap | bitmap | ) |
Definition at line 654 of file SlideGLArea.cs.
| void BioImager.SlideGLArea.SetTilesToRender | ( | IEnumerable< TileRenderInfo > | tiles | ) |
Prepare tiles for rendering. Call before RequestRedraw().
Definition at line 708 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 418 of file SlideGLArea.cs.
|
get |
Definition at line 714 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 67 of file SlideGLArea.cs.
|
get |
Definition at line 49 of file SlideGLArea.cs.
|
get |
Definition at line 48 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 60 of file SlideGLArea.cs.