Canvas width and height in HTML5

后端 未结 4 1038
青春惊慌失措
青春惊慌失措 2020-11-22 04:46

Is it possible to fix the width and height of an HTML5 canvas element?

The usual way is the following :



        
4条回答
  •  青春惊慌失措
    2020-11-22 05:29

    Thank you very much! Finally I solved the blurred pixels problem with this code:

    With the addition of the 'half-pixel' does the trick to unblur lines.

提交回复
热议问题