yeah i need to use a grease monkey script to find the darkest pixel in an image and then click the point it finds. im kinda a noob programmer so any help would be awesome, thanks!
views:
184answers:
2
A:
You could use this http://stackoverflow.com/questions/366145/image-manipulation-with-javascript
gets an error on the line ctx.drawImage(image, 0, 0);"this type of object is incompatible with the expected type of parameter associated to the object"
2009-01-29 11:42:19
Where do you get the error? what have you put into image variable?
2009-01-29 11:42:40
A:
You could probably load the image onto a canvas, extract the image data with getImageData(), and analyse that.
Paul Dixon
2009-01-29 11:11:53