html canvas tag width limitation RRS feed

  • Question

  • Dear All:

    Is there any way to get the max width limitation of canvas (html tag) on the local computer?

    I found that different computers have different max width limitation.

    For example: I want to draw pictures on the canvas, and one picture within the whole screen. The number of pictures I can draw on the canvas is required...Yes, I can get the clientWidth of body, but the canvas max width limitation is a dynamic value.

    Is there any way to get the value?



    Monday, November 26, 2012 8:33 AM


  • Hi,

    It varies on different browser and platform. I don't think there is a way to get the value.

    My suggestion is you do the scroll by your self, apply translate transform before drawing the image. Then you'll get unlimited drawing space and , I believe, much better performance.

    Hope this will help



    woodhead is as woodhead does

    • Marked as answer by UOW_Nick Wednesday, November 28, 2012 1:27 AM
    Tuesday, November 27, 2012 12:42 AM