• <tfoot id='c3upZ'></tfoot>
  • <i id='c3upZ'><tr id='c3upZ'><dt id='c3upZ'><q id='c3upZ'><span id='c3upZ'><b id='c3upZ'><form id='c3upZ'><ins id='c3upZ'></ins><ul id='c3upZ'></ul><sub id='c3upZ'></sub></form><legend id='c3upZ'></legend><bdo id='c3upZ'><pre id='c3upZ'><center id='c3upZ'></center></pre></bdo></b><th id='c3upZ'></th></span></q></dt></tr></i><div id='c3upZ'><tfoot id='c3upZ'></tfoot><dl id='c3upZ'><fieldset id='c3upZ'></fieldset></dl></div>

    <small id='c3upZ'></small><noframes id='c3upZ'>

    <legend id='c3upZ'><style id='c3upZ'><dir id='c3upZ'><q id='c3upZ'></q></dir></style></legend>
      <bdo id='c3upZ'></bdo><ul id='c3upZ'></ul>

        网络工作者和画布

        时间:2023-06-20
        <tfoot id='qD4pT'></tfoot>
      1. <small id='qD4pT'></small><noframes id='qD4pT'>

        • <legend id='qD4pT'><style id='qD4pT'><dir id='qD4pT'><q id='qD4pT'></q></dir></style></legend>
            <tbody id='qD4pT'></tbody>

            • <i id='qD4pT'><tr id='qD4pT'><dt id='qD4pT'><q id='qD4pT'><span id='qD4pT'><b id='qD4pT'><form id='qD4pT'><ins id='qD4pT'></ins><ul id='qD4pT'></ul><sub id='qD4pT'></sub></form><legend id='qD4pT'></legend><bdo id='qD4pT'><pre id='qD4pT'><center id='qD4pT'></center></pre></bdo></b><th id='qD4pT'></th></span></q></dt></tr></i><div id='qD4pT'><tfoot id='qD4pT'></tfoot><dl id='qD4pT'><fieldset id='qD4pT'></fieldset></dl></div>

                  <bdo id='qD4pT'></bdo><ul id='qD4pT'></ul>
                  本文介绍了网络工作者和画布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否允许网络工作者访问画布对象?

                  Are web workers allowed to access a canvas object?

                  推荐答案

                  小更新,问题到现在半年多了:

                  Small update, as the question is now more than half a year old:

                  在 Chrome/Chromium 6 中,您现在可以将画布的 ImageData 对象发送给网络工作者,让网络工作者对对象进行更改,然后使用 putImageData(..) 将其写回画布.

                  In Chrome/Chromium 6 you can now send a canvas' ImageData object to a web worker, let the web worker make changes to the object and then write it back to the canvas using putImageData(..).

                  Google 的 Chromabrush 就是这样做的,源代码可以在这里找到:

                  Google's Chromabrush does it this way, the source-code can be found here:

                  • 主线程
                  • 网络工作者

                  更新:

                  Opera (10.70) 和 Firefox (4.0b1) 的最新开发快照也支持将 ImageData 对象传递给 web worker.

                  The latest development snapshots of Opera (10.70) and Firefox (4.0b1) also support passing ImageData objects to a web worker.

                  2017 年更新:

                  来自 Github 的实际链接(从 Chromabrush 更容易找到所需的文件):

                  Actual links from Github (easier to find needed files from Chromabrush):

                  • 向工作人员发送 imageData李>
                  • 接收数据

                  这篇关于网络工作者和画布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:创建具有 24 点或以上点阵的“新"尖刺标签 下一篇:如何在使用“toDataURL"转换画布时设置图像质量?方法?

                  相关文章

                • <legend id='3oD5E'><style id='3oD5E'><dir id='3oD5E'><q id='3oD5E'></q></dir></style></legend>

                    <small id='3oD5E'></small><noframes id='3oD5E'>

                  1. <tfoot id='3oD5E'></tfoot>
                    <i id='3oD5E'><tr id='3oD5E'><dt id='3oD5E'><q id='3oD5E'><span id='3oD5E'><b id='3oD5E'><form id='3oD5E'><ins id='3oD5E'></ins><ul id='3oD5E'></ul><sub id='3oD5E'></sub></form><legend id='3oD5E'></legend><bdo id='3oD5E'><pre id='3oD5E'><center id='3oD5E'></center></pre></bdo></b><th id='3oD5E'></th></span></q></dt></tr></i><div id='3oD5E'><tfoot id='3oD5E'></tfoot><dl id='3oD5E'><fieldset id='3oD5E'></fieldset></dl></div>

                      <bdo id='3oD5E'></bdo><ul id='3oD5E'></ul>