pixmap selection with mouse

BlitzMax Forums/BlitzMax Programming/pixmap selection with mouse

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This works great as long as you have on this specific rectange a pixmap, what happens if you have two overlapped pixmaps where at some areas pixels of one pixmap are hidden (within the same pixmap rectange) and on another part pixels of the other pixmap are hidden?

Suppose you have 2 pixmaps, one is the an image of the letter A and the other an image of the letter B but their canvases are exactly the one on top of the other. Even so some pixels of one letter are visible while at onother spot pixels of the other letter are visible. How can I distinguish which letter the pointer is 'touching'?

Thanks