|
| override void | Dispose (bool disposing) |
| | Clean up any resources being used.
|
| |
Definition at line 3 of file PenTool.Designer.cs.
◆ 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 }
◆ 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 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 }
◆ 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: