Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getImageData causes "Uncaught Error: NOT_SUPPORTED_ERR: DOM Exception 9"

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!

like image 490
flerngobot Avatar asked Jan 16 '23 20:01

flerngobot


1 Answers

Okay 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)
like image 54
flerngobot Avatar answered Jan 30 '23 18:01

flerngobot