admin管理员组文章数量:1287856
I'm trying to get a feel for some image manipulation in HTML5. I am finding that when I try and use the getImageData method I get this JS exception thrown. I am using Chrome and running on localhost.
Thanks!
I'm trying to get a feel for some image manipulation in HTML5. I am finding that when I try and use the getImageData method I get this JS exception thrown. I am using Chrome and running on localhost.
Thanks!
Share Improve this question edited Mar 3, 2013 at 16:58 Josh Unger 7,1737 gold badges37 silver badges55 bronze badges asked Apr 24, 2012 at 17:21 flerngobotflerngobot 6661 gold badge11 silver badges32 bronze badges 1- Might need a little more context. Possibly related: stackoverflow./questions/4121142/… stackoverflow./questions/833883/… – Andrew Leach Commented Apr 24, 2012 at 17:34
2 Answers
Reset to default 9Okay figured out what the problem was. All I have to say is "derp". I was using
getImageData(x, x)
but the way I was intending to use this requires 4 arguments
getImageData(x,x,x,x)
It could be an issue with editing files on your local system using Chrome. You can close Chrome and reopen it using flags --allow-file-access-from-files to allow local file editing.
Came across this post when I ran into a similar issue and it helped.
本文标签: javascriptgetImageData causes quotUncaught Error NOTSUPPORTEDERR DOM Exception 9quotStack Overflow
版权声明:本文标题:javascript - getImageData causes "Uncaught Error: NOT_SUPPORTED_ERR: DOM Exception 9" - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741327465a2372570.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论