Mercurial > hg > orthanc-stone
comparison Applications/Samples/BasicPetCtFusionApplication.h @ 147:f48c5d422d45 wasm
removed meaningless ImageInterpolation_Linear value
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Jan 2018 17:50:19 +0100 |
parents | e2fe9352f240 |
children | 5412adf19980 |
comparison
equal
deleted
inserted
replaced
146:fb7d602e7025 | 147:f48c5d422d45 |
---|---|
85 static void ToggleInterpolation(LayeredSceneWidget& widget, | 85 static void ToggleInterpolation(LayeredSceneWidget& widget, |
86 size_t layer) | 86 size_t layer) |
87 { | 87 { |
88 RenderStyle style = widget.GetLayerStyle(layer); | 88 RenderStyle style = widget.GetLayerStyle(layer); |
89 | 89 |
90 if (style.interpolation_ == ImageInterpolation_Linear) | 90 if (style.interpolation_ == ImageInterpolation_Bilinear) |
91 { | 91 { |
92 style.interpolation_ = ImageInterpolation_Nearest; | 92 style.interpolation_ = ImageInterpolation_Nearest; |
93 } | 93 } |
94 else | 94 else |
95 { | 95 { |
96 style.interpolation_ = ImageInterpolation_Linear; | 96 style.interpolation_ = ImageInterpolation_Bilinear; |
97 } | 97 } |
98 | 98 |
99 widget.SetLayerStyle(layer, style); | 99 widget.SetLayerStyle(layer, style); |
100 } | 100 } |
101 | 101 |