comparison Applications/StoneWebViewer/WebApplication/app.js @ 2030:f36de3ba43c8

added button "Stretch to whole range" in the "Change windowing" menu
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Dec 2022 17:30:12 +0100
parents e0b7b2a8b914
children a56f7ed0cdf9 b2738d7a388d
comparison
equal deleted inserted replaced
2028:0d8a07e98cb8 2030:f36de3ba43c8
1029 SetWindowing: function(center, width) { 1029 SetWindowing: function(center, width) {
1030 this.showWindowing = false; 1030 this.showWindowing = false;
1031 var canvas = this.GetActiveCanvas(); 1031 var canvas = this.GetActiveCanvas();
1032 if (canvas != '') { 1032 if (canvas != '') {
1033 stone.SetWindowing(canvas, center, width); 1033 stone.SetWindowing(canvas, center, width);
1034 }
1035 },
1036
1037 StretchWindowing: function(center, width) {
1038 this.showWindowing = false;
1039 var canvas = this.GetActiveCanvas();
1040 if (canvas != '') {
1041 stone.StretchWindowing(canvas);
1034 } 1042 }
1035 }, 1043 },
1036 1044
1037 InvertContrast: function() { 1045 InvertContrast: function() {
1038 var canvas = this.GetActiveCanvas(); 1046 var canvas = this.GetActiveCanvas();