HTML 5画布图像:如何应用抗混叠
var canvas = document.getElementById("canvas");var ctx = canvas.getContext("2d");img = new Image();img.onload = function(){ canvas.width = 400; canvas.height = 150; ctx.drawImage(img, 0, 0, img.width, img.height, 0, 0, 400, 150); }img.src = "http://openwalls.com/image/1734/colored_lines_on_blue_background_1920x1200.jpg";
慕虎7371278
陪伴而非守候