Home | History | Annotate | Download | only in skpdiff

Lines Matching refs:Image

10     // Custom directive for showing an image that gets swapped my mouseover.
21 var leftImage = new Image();
22 var rightImage = new Image();
26 var image;
28 image = leftImage;
30 image = rightImage;
33 // Make it so the maximum size of an image is MAX_SWAP_IMG_SIZE, and the images are
36 while ((image.width / divisor) > MAX_SWAP_IMG_SIZE) {
40 // Set canvas to correct size and draw the image into it
41 elm[0].width = image.width / divisor;
42 elm[0].height = image.height / divisor;
43 ctx.drawImage(image, 0, 0, elm[0].width, elm[0].height);
46 // When the leftSrc attribute changes, load the image and then rerender
56 // When the rightSrc attribute changes, load the image and then rerender