我可以提高 HTML5 canvas 分辨率吗?
Can I increase HTML5 canvas resolution?
Html canvas 降低图像和形状的分辨率。有没有办法提高质量?
当然可以:
const width = ..., height = ..., scale = 2;
const canvas = document.querySelector('...')
canvas.style.width = width;
canvas.style.height = height;
canvas.width = width * scale;
canvas.height = height * scale;
Html canvas 降低图像和形状的分辨率。有没有办法提高质量?
当然可以:
const width = ..., height = ..., scale = 2;
const canvas = document.querySelector('...')
canvas.style.width = width;
canvas.style.height = height;
canvas.width = width * scale;
canvas.height = height * scale;