I have a canvas. The canvas is w
pixels wide and h
pixels high.
There is an image on the canvas.
Is there a pixel (or more) with an opacity of less than 1.0 between the two points (a,b)
and (c,d)
?
It doesn't matter whether there is one (semi-)transparent pixel or whether there are a hundred. A simple true
or false
value will suffice.
Performance does not matter too much (since this will only be ran once every time the page is loaded, for about 500k pixels).
How does one find out?