Canvas DrawImage() poor quality [duplicate]
问题 This question already has answers here : Html5 canvas drawImage: how to apply antialiasing (6 answers) Closed 5 years ago . I have a problem with Html5 canvas i draw an image but its quality becomes very poor after i draw it with canvas it becomes this my code is here <script type="text/javascript"> $canvasWidth = $('#canvas').width; $canvasHeight = $('#canvas').height; var alpha = 0.0; var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); function draw(){ var