On Tue, 26 Jun 2001 Rodney Tamblyn <[EMAIL PROTECTED]>:
> It is possible use the mouseColor function to get the colour
> underneath the cursor. Does anyone here know if there is a way to
> get the colour at an arbitrary point?
> I have some medical images which have a (normally hidden) "rollover"
> layer where features are identified by irregular shaped solid
> colours. When the user drags the mouse over the image I want to be
> able to determine the colour at the same point in this hidden layer.
> Depending on the colour the user is over, appropriate rollover
> comments can be shown. It's possible to do this in Director but I
> haven't yet worked out how to do it in MC.
Sounds like what you want is more than just the color at "an arbitrary
point", it's at "an abitrary point in an object that isn't even drawn
on the screen". This is not even theoretically possible to do in
general (I doubt even Director can do it for all cases), but as long
as that hidden layer is an image or can turned into an image (e.g.,
show it at some point and then "import snapshot"), you can do this in
MetaCard in 2.4 using the new imageData property. You just need to
calculate the offset of the pixel in the buffer and then get it and
convert it to some usable value (like an R,G,B value).
Regards,
Scott
> --
> --
> Rodney Tamblyn
> Educational Media group
> Higher Education Development Centre, 75 Union Place
> University of Otago, PO Box 56, Dunedin, New Zealand
> ph +64 3 479 7580 Fax +64 3 479 8362
> http://hedc.otago.ac.nz ~ http://rodney.weblogs.com
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.