diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-08-27 17:20:54 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-08-27 17:20:54 +0300 |
| commit | da669922e69a95654dcbcdd7c7fdafe0c4de0a77 (patch) | |
| tree | 8e3398c8132e3c51471d2ee18daffe1bf47167d9 /Software/Visual_Studio/PPC | |
| parent | bf8bffbd56328b55b98db79e700bd3dc4dc8e882 (diff) | |
| download | Tango-da669922e69a95654dcbcdd7c7fdafe0c4de0a77.tar.gz Tango-da669922e69a95654dcbcdd7c7fdafe0c4de0a77.zip | |
Correct K < 0.5 during VFT.
Related Work Items: #7959
Diffstat (limited to 'Software/Visual_Studio/PPC')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs | 7 | ||||
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs index b9149b81f..3914a8b1b 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Dialogs/VectorFineTuningDialogVM.cs @@ -818,6 +818,12 @@ namespace Tango.PPC.Jobs.Dialogs TargetB = brushstop.B; TargetA = brushstop.A; BrushStopModel.ConvertColorToVolume(); + if (BrushStopModel.Black > 0 && BrushStopModel.Black < 0.5) + { + BrushStopModel.PreventPropertyUpdate = true; + BrushStopModel.Black = 0; + BrushStopModel.PreventPropertyUpdate = false; + } BrushStopModel.ColorSpace = ColorSpaces.LAB; IsOnlyManual = false; } @@ -828,6 +834,7 @@ namespace Tango.PPC.Jobs.Dialogs Magenta = BrushStopModel.Magenta; Yellow = BrushStopModel.Yellow; Black = BrushStopModel.Black; + MeasuredL = MeasuredB = MeasuredA = null; TestColor = null; diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs index 5464aa5ed..a6e7af170 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.JobsV2/Models/BrushStopModel.cs @@ -1558,6 +1558,10 @@ namespace Tango.PPC.Jobs.Models _yellow = (output.SingleCoordinates.OutputLiquids.SingleOrDefault(x => x.LiquidType == PMR.ColorLab.LiquidType.Yellow).Volume); _magenta = (output.SingleCoordinates.OutputLiquids.SingleOrDefault(x => x.LiquidType == PMR.ColorLab.LiquidType.Magenta).Volume); _black = (output.SingleCoordinates.OutputLiquids.SingleOrDefault(x => x.LiquidType == PMR.ColorLab.LiquidType.Black).Volume); + if(_black > 0 && _black < 0.5)//bug 7959 0.001 < K% < 0.5 ==> reset the K to 0. + { + _black = 0; + } IsOutOfGamut = output.OutOfGamut; if(IsOutOfGamut) { |
