diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2022-12-11 15:40:56 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2022-12-11 15:40:56 +0200 |
| commit | d8aa923804abfa77bef60e4b1082f3cc8ba8347f (patch) | |
| tree | 73662701b27ea69d36924ca67bd10f6307901e11 /Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/VisualOffsetModel.cs | |
| parent | d0a3f91acd04b65775afc615d426882d54dc4680 (diff) | |
| download | Tango-d8aa923804abfa77bef60e4b1082f3cc8ba8347f.tar.gz Tango-d8aa923804abfa77bef60e4b1082f3cc8ba8347f.zip | |
PPC. VFT. Set spool type from job. Clear values in VFT dialog after test.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/VisualOffsetModel.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/VisualOffsetModel.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/VisualOffsetModel.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/VisualOffsetModel.cs index 042350cb0..7a2ee2add 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/VisualOffsetModel.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/VisualOffsetModel.cs @@ -279,6 +279,27 @@ namespace Tango.PPC.Jobs.Models RaisePropertyChanged(nameof(ManualColorBrush)); } + public void ClearAll(double l, double a, double b) + { + LightnessOffset = 0; + ChromaOffset = 0; + HueOffset = 0; + LabColor labColor = new LabColor(l, a, b); + var converter = new ColourfulConverter { WhitePoint = Illuminants.D65 }; + var last_LCH = converter.ToLChab(labColor); + SourceL = l; + SourceA = a; + SourceB = b; + SourceC = last_LCH.C; + SourceH = last_LCH.h; + L = l; + A = a; + B = b; + C = last_LCH.C; + H = last_LCH.h; + } + + public void UpdateSourceLAB(double l, double a, double b) { LabColor labColor = new LabColor(l, a, b); @@ -291,6 +312,18 @@ namespace Tango.PPC.Jobs.Models SourceH = last_LCH.h; } + public void UpdateLAB(double l, double a, double b) + { + LabColor labColor = new LabColor(l, a, b); + var converter = new ColourfulConverter { WhitePoint = Illuminants.D65 }; + var last_LCH = converter.ToLChab(labColor); + L = l; + A = a; + B = b; + C = last_LCH.C; + H = last_LCH.h; + } + public void UpdateManualColors() { Lch lch = Correction(-6, 0, 0); |
