I have an image on a browser.
I want to get the top left pixel of the image color (at coordinates: 0,0), no matter whether the image is rotated or not.
How can I do that, using javascript or php code?
canvas.getContext('2d')
context.drawImage(image, x, y)
context.getImageData(x1, y1, x2, y2)
context.getImageData(0, 0, 1, 1)
data
field (context.getImageData(0,0,1,1).data
)
r
, g
, b
and a
values.