BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
BioCore.Plot Class Reference
Inheritance diagram for BioCore.Plot:

Public Member Functions

 Plot ()
 
 Plot (double[] vals, string name)
 
void UpdateImage ()
 

Public Attributes

ScottPlot.Plot plot
 

Protected Member Functions

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

Properties

List< double[]> Data [get, set]
 
System.Drawing.Bitmap Image [get, set]
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Plot() [1/2]

BioCore.Plot.Plot ( )

Definition at line 33 of file Plot.cs.

34 {
35 InitializeComponent();
37 name = DateTime.Now.Ticks.ToString();
38 this.Show();
39 }
void UpdateImage()
Definition Plot.cs:49

◆ Plot() [2/2]

BioCore.Plot.Plot ( double[] vals,
string name )

Definition at line 40 of file Plot.cs.

41 {
42 InitializeComponent();
43 data.Add(vals);
45 this.name = name;
46 this.Show();
47 }

Member Function Documentation

◆ Dispose()

override void BioCore.Plot.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 Plot.Designer.cs.

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

◆ UpdateImage()

void BioCore.Plot.UpdateImage ( )

Definition at line 49 of file Plot.cs.

50 {
51 /*
52 plot = new ScottPlot.Plot();
53 foreach (double[] val in data)
54 {
55 Bar b = new Bar();
56 b.Value = val;
57
58 plot.Add.Bar(val);
59 }
60 file = plot.SaveFig(name + ".png");
61 */
62 this.Text = name;
63 bitmap = (System.Drawing.Bitmap)System.Drawing.Bitmap.FromFile(file);
64 pictureBox.Image = bitmap;
65 }

Member Data Documentation

◆ plot

ScottPlot.Plot BioCore.Plot.plot

Definition at line 16 of file Plot.cs.

Property Documentation

◆ Data

List<double[]> BioCore.Plot.Data
getset

Definition at line 22 of file Plot.cs.

23 {
24 get { return data; }
25 set { data = value; UpdateImage(); }
26 }

◆ Image

System.Drawing.Bitmap BioCore.Plot.Image
getset

Definition at line 28 of file Plot.cs.

29 {
30 get { return bitmap; }
31 set { bitmap = value; }
32 }

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