Bonjour,
Y’a t’il une méthode simple pour afficher une image redimentionné avec antialiasing ?
var imageObj = new Image();
imageObj.onload = function() {
context.drawImage(imageObj, 10, 10, imageObj.width/3.5, imageObj.height/3.5);
};
imageObj.src = ‘une_grille_par_exemple.png’;
Ca affiche une image non antialiasé.
context.scale() donne le même résultat tout moche.
Le browser sait pourtant bien afficher en direct l’image antialiasé en html via la balise img en changeant les attibuts width et height.
Une idée de comment faire en canvas ?