is within ... polygon shape?

Lynch, Jonathan bnz2 at cdc.gov
Fri Jun 24 13:00:05 EDT 2005


Ah, but that only tests a single point. To be perfectly accurate, one
would need to test every single non-transparent point in the image.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Scott
Rossi
Sent: Friday, June 24, 2005 12:50 PM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Recently, Lynch, Jonathan  wrote:

> Put the points of image "myImage1" into field "feedback"
> 
> Causes an error - it says this object does not have this property. I
am
> misunderstanding something aren't I?

Images don't have points.  You simply test the point against the image
itself:

 if within(img "myImage",myPoint) then answer "point is within the
image"

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list