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.
Loading...
Searching...
No Matches
BioImager.Graphics.PenTool Class Reference
Inheritance diagram for BioImager.Graphics.PenTool:

Public Member Functions

void UpdateGUI ()
 
void SetColor ()
 
 PenTool (Pen p)
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used.
 

Properties

Pen Pen [get, set]
 

Detailed Description

Definition at line 3 of file PenTool.Designer.cs.

Constructor & Destructor Documentation

◆ PenTool() [1/2]

BioImager.Graphics.PenTool.PenTool ( )

Definition at line 40 of file PenTool.cs.

41 {
42 InitializeComponent();
43 UpdateGUI();
44 }

◆ PenTool() [2/2]

BioImager.Graphics.PenTool.PenTool ( Pen p)

Definition at line 45 of file PenTool.cs.

46 {
47 InitializeComponent();
48 pen = p;
49 SetColor();
50 UpdateGUI();
51 }

Member Function Documentation

◆ Dispose()

override void BioImager.Graphics.PenTool.Dispose ( bool disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

Definition at line 14 of file PenTool.Designer.cs.

15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }

◆ SetColor()

void BioImager.Graphics.PenTool.SetColor ( )

Definition at line 34 of file PenTool.cs.

35 {
36 rBar.Value = pen.color.R;
37 gBar.Value = pen.color.G;
38 bBar.Value = pen.color.B;
39 }

◆ UpdateGUI()

void BioImager.Graphics.PenTool.UpdateGUI ( )

Definition at line 22 of file PenTool.cs.

23 {
24 pen.color = new ColorS((ushort)redBox.Value, (ushort)greenBox.Value, (ushort)blueBox.Value);
25 colorPanel.BackColor = System.Drawing.Color.FromArgb(pen.color.R, pen.color.G, pen.color.B);
26 if (rBar.Value != redBox.Value)
27 redBox.Value = rBar.Value;
28 if (gBar.Value != greenBox.Value)
29 greenBox.Value = gBar.Value;
30 if (bBar.Value != blueBox.Value)
31 blueBox.Value = bBar.Value;
32 }

Property Documentation

◆ Pen

Pen BioImager.Graphics.PenTool.Pen
getset

Definition at line 10 of file PenTool.cs.

11 {
12 get
13 {
14 return pen;
15 }
16 set
17 {
18 pen = value;
19 }
20 }

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