|
|
@ -1532,7 +1532,7 @@ tests['putImageData() 6'] = function(ctx){ |
|
|
|
ctx.putImageData(data,60,60,10,0,35,30); |
|
|
|
}; |
|
|
|
|
|
|
|
tests['putImageData() CTM'] = function(ctx){ |
|
|
|
tests['putImageData() 7'] = function(ctx){ |
|
|
|
for (i=0;i<6;i++){ |
|
|
|
for (j=0;j<6;j++){ |
|
|
|
ctx.fillStyle = 'rgb(' + Math.floor(255-42.5*i) + ',' + |
|
|
@ -1543,7 +1543,21 @@ tests['putImageData() CTM'] = function(ctx){ |
|
|
|
ctx.strokeRect(60,60,50,30); |
|
|
|
ctx.translate(20,20); |
|
|
|
var data = ctx.getImageData(0,0,50,50); |
|
|
|
ctx.putImageData(data,60,60,10,20,35,30); |
|
|
|
ctx.putImageData(data,60,60,10,20,35,-10); |
|
|
|
}; |
|
|
|
|
|
|
|
tests['putImageData() 8'] = function(ctx){ |
|
|
|
for (i=0;i<6;i++){ |
|
|
|
for (j=0;j<6;j++){ |
|
|
|
ctx.fillStyle = 'rgb(' + Math.floor(255-42.5*i) + ',' + |
|
|
|
Math.floor(255-42.5*j) + ',0)'; |
|
|
|
ctx.fillRect(j*25,i*25,25,25); |
|
|
|
} |
|
|
|
} |
|
|
|
ctx.strokeRect(60,60,50,30); |
|
|
|
ctx.translate(20,20); |
|
|
|
var data = ctx.getImageData(0,0,50,50); |
|
|
|
ctx.putImageData(data,-10,-10,0,20,35,30); |
|
|
|
}; |
|
|
|
|
|
|
|
tests['putImageData() alpha'] = function(ctx){ |
|
|
|