views:

184

answers:

2

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!

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"
Where do you get the error? what have you put into image variable?
A: 

You could probably load the image onto a canvas, extract the image data with getImageData(), and analyse that.

Paul Dixon