BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
BioImager.DSystem Class Reference

Public Member Functions

virtual bool Initialize (string title, int width, int height, bool vSync, bool fullScreen, IntPtr handle)
 
bool Frame (IntRange r, IntRange g, IntRange b, float interval, float alpha)
 
void ShutDown ()
 

Properties

DSystemConfiguration Configuration [get]
 
DInput Input [get]
 
DGraphics Graphics [get]
 

Detailed Description

Definition at line 5 of file DSystem.cs.

Constructor & Destructor Documentation

◆ DSystem()

BioImager.DSystem.DSystem ( )

Definition at line 13 of file DSystem.cs.

13{ }

Member Function Documentation

◆ Frame()

bool BioImager.DSystem.Frame ( IntRange  r,
IntRange  g,
IntRange  b,
float  interval,
float  alpha 
)

Definition at line 33 of file DSystem.cs.

34 {
35 // Check if the user pressed escape and wants to exit the application.
36 if (Input.IsKeyDown(Keys.Escape))
37 return false;
38 // Do the frame processing for the graphics object.
39 return Graphics.Frame(r, g, b, interval, alpha);
40 }

◆ Initialize()

virtual bool BioImager.DSystem.Initialize ( string  title,
int  width,
int  height,
bool  vSync,
bool  fullScreen,
IntPtr  handle 
)
virtual

Definition at line 15 of file DSystem.cs.

16 {
17 bool result = false;
18
19 if (Configuration == null)
20 Configuration = new DSystemConfiguration(title, width, height, fullScreen, vSync);
21 if (Input == null)
22 {
23 Input = new DInput();
24 Input.Initialize();
25 }
26 if (Graphics == null)
27 {
28 Graphics = new DGraphics();
29 result = Graphics.Initialize(Configuration, handle, ImageView.SelectedImage);
30 }
31 return result;
32 }

◆ ShutDown()

void BioImager.DSystem.ShutDown ( )

Definition at line 41 of file DSystem.cs.

42 {
43 Graphics?.ShutDown();
44 Graphics = null;
45 Input = null;
46 Configuration = null;
47 }

Property Documentation

◆ Configuration

DSystemConfiguration BioImager.DSystem.Configuration
get

Definition at line 8 of file DSystem.cs.

8{ get; private set; }

◆ Graphics

DGraphics BioImager.DSystem.Graphics
get

Definition at line 10 of file DSystem.cs.

10{ get; private set; }

◆ Input

DInput BioImager.DSystem.Input
get

Definition at line 9 of file DSystem.cs.

9{ get; private set; }

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