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.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. More...
 

Properties

Pen Pen [get, set]
 

Detailed Description

Definition at line 4 of file PenTool.cs.

Constructor & Destructor Documentation

◆ PenTool() [1/2]

BioImager.Graphics.PenTool.PenTool ( )

Definition at line 37 of file PenTool.cs.

38 {
39 InitializeComponent();
40 UpdateGUI();
41 }

◆ PenTool() [2/2]

BioImager.Graphics.PenTool.PenTool ( Pen  p)

Definition at line 42 of file PenTool.cs.

43 {
44 InitializeComponent();
45 pen = p;
46 SetColor();
47 UpdateGUI();
48 }

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 31 of file PenTool.cs.

32 {
33 rBar.Value = pen.color.R;
34 gBar.Value = pen.color.G;
35 bBar.Value = pen.color.B;
36 }

◆ UpdateGUI()

void BioImager.Graphics.PenTool.UpdateGUI ( )

Definition at line 19 of file PenTool.cs.

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

Property Documentation

◆ Pen

Pen BioImager.Graphics.PenTool.Pen
getset

Definition at line 7 of file PenTool.cs.

8 {
9 get
10 {
11 return pen;
12 }
13 set
14 {
15 pen = value;
16 }
17 }

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