From 48c966dd59fbd9d08b7643c0f6e291272d3c4fe7 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 22 Aug 2016 16:26:33 +0530 Subject: [PATCH] introduced new folder for annotation toolbar --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 27 +++++++++++++++++++++++++++ 400-SOURCECODE/AIAHTML5.Web/content/images/common/annotation-tool-bar/blank-shape.jpg | Bin 0 -> 7556 bytes 2 files changed, 27 insertions(+), 0 deletions(-) create mode 100644 400-SOURCECODE/AIAHTML5.Web/content/images/common/annotation-tool-bar/blank-shape.jpg diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index f4b54c3..e07b20e 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -1921,6 +1921,33 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo grayCanvasContext.putImageData(updatedData, 0, 0); + + + //NIKI- to resolve lateral arm black issue in highlight mode + + if ($rootScope.viewOrientationId == 5 && (bodyRegionId == 6 || bodyRegionId == 4)) { + + var canavsWidth = parseInt(grayCanvasContext.width) + 'px'; + var canavsHeight = parseInt(grayCanvasContext.height) + 'px'; + + console.log('canavsWidth= ' + canavsWidth + ', canavsHeight= ' + canavsHeight) + + var imgData = grayCanvasContext.getImageData(0, 0, canavsWidth, canavsHeight); + var data = imgData.data; + var c = 0; + for (var i = 0; i < data.length; i += 4) { + if (data[i] == data[i + 1] && data[i + 1] == data[i + 2] && data[i + 2] === 0) { + data[i + 3] = 0; + } + + } + grayCanvasContext.putImageData(imgData, 0, 0); + } + + + //NIKI + + // } if ($rootScope.multiAnnotationIsON == true) { diff --git a/400-SOURCECODE/AIAHTML5.Web/content/images/common/annotation-tool-bar/blank-shape.jpg b/400-SOURCECODE/AIAHTML5.Web/content/images/common/annotation-tool-bar/blank-shape.jpg new file mode 100644 index 0000000..eabe479 Binary files /dev/null and b/400-SOURCECODE/AIAHTML5.Web/content/images/common/annotation-tool-bar/blank-shape.jpg differ -- libgit2 0.21.4