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.
Loading...
Searching...
No Matches
BioGTK.SlideArea Class Reference

GTK widget that provides SkiaSharp rendering surface for slide content Manages the rendering pipeline and exposes Skia canvas for custom drawing. More...

Inheritance diagram for BioGTK.SlideArea:

Public Member Functions

void SetRenderer (SKSlideRenderer renderer)
 Set the renderer that will provide content for this area.
 
void RequestRedraw ()
 Request redraw of the widget.
 

Protected Member Functions

override void Dispose (bool disposing)
 

Events

Action< SKCanvas, int, int > OnSkiaRender
 Event fired during Skia rendering phase Allows custom drawing on top of the slide content (annotations, overlays, etc.)
 

Detailed Description

GTK widget that provides SkiaSharp rendering surface for slide content Manages the rendering pipeline and exposes Skia canvas for custom drawing.

Definition at line 13 of file SlideArea.cs.

Constructor & Destructor Documentation

◆ SlideArea()

BioGTK.SlideArea.SlideArea ( )

Definition at line 34 of file SlideArea.cs.

34 : base()
35 {
36 // Configure widget
37 this.Expand = true;
38 this.CanFocus = true;
39
40 // Subscribe to paint event
41 this.PaintSurface += OnPaintSurface;
42
43 _isInitialized = true;
44 }

Member Function Documentation

◆ Dispose()

override void BioGTK.SlideArea.Dispose ( bool disposing)
protected

Definition at line 106 of file SlideArea.cs.

107 {
108 if (disposing)
109 {
110 this.PaintSurface -= OnPaintSurface;
111 }
112
113 base.Dispose(disposing);
114 }

◆ RequestRedraw()

void BioGTK.SlideArea.RequestRedraw ( )

Request redraw of the widget.

Definition at line 97 of file SlideArea.cs.

98 {
99 this.QueueDraw();
100 }

◆ SetRenderer()

void BioGTK.SlideArea.SetRenderer ( SKSlideRenderer renderer)

Set the renderer that will provide content for this area.

Definition at line 53 of file SlideArea.cs.

54 {
55 _renderer = renderer;
56 }

Event Documentation

◆ OnSkiaRender

Action<SKCanvas, int, int> BioGTK.SlideArea.OnSkiaRender

Event fired during Skia rendering phase Allows custom drawing on top of the slide content (annotations, overlays, etc.)

Definition at line 21 of file SlideArea.cs.


The documentation for this class was generated from the following file: