Lines Matching refs:Image
18 var image = new Image();
25 // When the type attribute changes, load the image and then render
29 image.src = scope.record.differencePath;
33 image.src = scope.record.baselinePath;
37 image.src = scope.record.testPath;
45 image.onload = function() {
46 // compute the scaled image width/height for image and canvas
48 // Make it so the maximum size of an image is MAX_SWAP_IMG_SIZE,
50 while ((image.width / divisor) > MAX_SWAP_IMG_SIZE) {
57 canvas.width = image.width * scope.imgScaleFactor;
58 canvas.height = image.height * scope.imgScaleFactor;
60 // update the size for non-alphaMask canvas when loading baseline image
68 // render the image onto the canvas
114 // draw the magnified image
116 ctx.drawImage(image, imgRect.x, imgRect.y, imgRect.width, imgRect.height,
128 // render the image to the canvas. This is often done every frame prior
132 ctx.drawImage(image, 0, 0, canvas.width, canvas.height);