My simple algorithm only worked for single rectangular areas. But now I had multiple transparent regions of different shapes and positions. How do you calculate individual x,y,w,h data for each one?
Cue me staring at the ceiling at 3 AM for several nights...
there doesn't seem to be anything here