pixmap selection with mouse

BlitzMax Forums/BlitzMax Programming/pixmap selection with mouse

The forum 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.

For the Canvas it's simple.
Let's say that your pixmap it's at the position x , y

If x - MouseX() < PixmapWidth(yourPixmap) And y - MouseY() < PixmapHeight(yourPixmap)
drawtext("in canvas")
end if

For the other stuff have a look in the wiki.
http://www.blitzwiki.org/index.php/ReadPixel

Tell me if it works I never done something like this.
Good Luck