aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-07-06 09:53:24 +0300
committerMirta <mirta@twine-s.com>2020-07-06 09:53:24 +0300
commite575493d6ec9915ea4efa25f1c6bc95a73a1957a (patch)
treef9e5e551a590c8580fbd4da30d9e11a7ea0a4114 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models
parent000867108ed4d5d15e02eae56413e53232268a22 (diff)
parent472128227357a42e556b08b867b643c344c18522 (diff)
downloadTango-e575493d6ec9915ea4efa25f1c6bc95a73a1957a.tar.gz
Tango-e575493d6ec9915ea4efa25f1c6bc95a73a1957a.zip
Accepted addition of gratient header
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs
new file mode 100644
index 000000000..fe9ec7e37
--- /dev/null
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/Models/ColorLinearizationModel.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.Documents;
+
+namespace Tango.MachineStudio.RML.Models
+{
+ public class ColorLinearizationModel
+ {
+ private class LinearizationDataItem
+ {
+ public double L { get; set; }
+ public double A { get; set; }
+ public double B { get; set; }
+ public int InkPercentage { get; set; }
+ }
+
+ public ColorLinearizationModel()
+ {
+
+ }
+
+ public void GetDataFromFile(string fileName)
+ {
+
+ ExcelReader reader = new ExcelReader(fileName);
+ var items = reader.GetDataByIndex<LinearizationDataItem>("Sheet1", 2);
+ foreach (var item in items)
+ {
+ }
+ reader.Dispose();
+ }
+ }
+}