function loadImage(image) {
				$scope.$applyAsync(function () {
					if ($scope.reversed) $scope.flipContext();
					$scope.signatureReady = true;

					ctxBackground.clearRect(0, 0, canvas.width, canvas.height);
					ctxBackground.drawImage(image, 0, 0, canvasBackground.width, canvasBackground.height);
				});
			}
function loadImage(image) {
				$scope.$applyAsync(function () {
					if ($scope.reversed) $scope.flipContext();
					$scope.signatureReady = true;

					ctxBackground.clearRect(0, 0, canvas.width, canvas.height);
					ctxBackground.drawImage(image, 0, 0, canvasBackground.width, canvasBackground.height);
				});
			}
function loadImage ( image ) { $scope . $applyAsync ( function ( ) { if ( $scope . reversed ) $scope . flipContext ( ) ; $scope . signatureReady = true ; ctxBackground . clearRect ( 0 , 0 , canvas . width , canvas . height ) ; ctxBackground . drawImage ( image , 0 , 0 , canvasBackground . width , canvasBackground . height ) ; } ) ; }
Load image on canvas
Load image on canvas