canvas max length limitation


  • The similar issue: http://social.msdn.microsoft.com/Forums/en-US/winappswithhtml5/thread/53c368e5-042b-4c3f-8903-ee024f4f7933

    Besides, the following example:

        <title>Canvas test</title>
        <script type="text/javascript">
            function draw() {
                var canvas = document.getElementById("myCanvas");
                //  if the canvas element exists 
                if (canvas.getContext) {
                    // Draw some rectangles with different color values
                    var ctx = canvas.getContext("2d");
                    ctx.fillStyle = "red";
                    ctx.fillRect(5, 5, 100, 100);
                    ctx.fillStyle = "rgba(0,50,200,0.5)";
                    ctx.fillRect(55, 55, 100, 100);
                    ctx.fillStyle = "rgba(0,255,10,0.5)";
                    ctx.fillRect(8100, 8100, 100, 100);
    <body onload = "draw();">
        <canvas id="myCanvas"" width="8292" height="8292" >
           Canvas is not supported on this browser or in this mode

    The width of canvas was set as 8292. However, if I want to replace fillRect(55, 55, 100, 100) as fillRect(55, 55, 8292, 100)...

    As some computers with Windows 8 RTM, it can fill 8192px, and my ultraBook with Windows 8 RTM it can fill as whole, but my platform with Windows RT, it can only fill 2048px...

    So, it there any way to get the value of max fill width limitation?

    Wednesday, November 28, 2012 1:26 AM