|
| override void | Dispose (bool disposing) |
| | Clean up any resources being used. More...
|
| |
Definition at line 4 of file PenTool.cs.
◆ 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 }
◆ Dispose()
| override void BioImager.Graphics.PenTool.Dispose |
( |
bool |
disposing | ) |
|
|
protected |
Clean up any resources being used.
- Parameters
-
| disposing | true 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 }
◆ 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: