2014-05-08 2 views

답변

1

오류가 발견되어 Firefox에서 캔버스 drawImage 호출에서 분수/0을 허용하지 않습니다. 값을 반올림

ctx.drawImage(img, x, y, w, h, 0, 0, width, height); 

과 전에 추가 :

그래서 당신은 당신의 JS에 다음 줄을 찾아야 문제를

바라기를 수정해야

w = Math.round(w); 
h = Math.round(h); 
width = Math.round(width); 
height = Math.round(height); 

ctx.drawImage(img, x, y, w, h, 0, 0, width, height); 

이것은 누군가 다른 사람을 도와줍니다!

관련 문제