|
| override void | Dispose (bool disposing) |
| | Clean up any resources being used.
|
| |
Definition at line 3 of file PenTool.Designer.cs.
◆ PenTool() [1/2]
| BioCore.PenTool.PenTool |
( |
| ) |
|
Definition at line 39 of file PenTool.cs.
40 {
41 InitializeComponent();
43 }
◆ PenTool() [2/2]
| BioCore.PenTool.PenTool |
( |
Pen | p | ) |
|
Definition at line 44 of file PenTool.cs.
45 {
46 InitializeComponent();
47 pen = p;
50 }
◆ Dispose()
| override void BioCore.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 BioCore.PenTool.SetColor |
( |
| ) |
|
Definition at line 33 of file PenTool.cs.
34 {
35 rBar.Value = pen.
color.R;
36 gBar.Value = pen.
color.G;
37 bBar.Value = pen.
color.B;
38 }
◆ UpdateGUI()
| void BioCore.PenTool.UpdateGUI |
( |
| ) |
|
Definition at line 21 of file PenTool.cs.
22 {
23 pen.color = new ColorS((ushort)redBox.Value, (ushort)greenBox.Value, (ushort)blueBox.Value);
24 colorPanel.BackColor = System.Drawing.Color.FromArgb(pen.
color.R, pen.
color.G, pen.
color.B);
25 if (rBar.Value != redBox.Value)
26 redBox.Value = rBar.Value;
27 if (gBar.Value != greenBox.Value)
28 greenBox.Value = gBar.Value;
29 if (bBar.Value != blueBox.Value)
30 blueBox.Value = bBar.Value;
31 }
◆ Pen
Definition at line 9 of file PenTool.cs.
10 {
11 get
12 {
13 return pen;
14 }
15 set
16 {
17 pen = value;
18 }
19 }
The documentation for this class was generated from the following files: