If the intent is to copy the example exactly then I'd think the imageData
would be the same. But I'd use location data as others have suggested. Get
the end points of the line graphic and loop through a list of correct
points to compare against.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 29, 2021 11:15:50 AM William de Smet via use-livecode
<use-livecode@lists.runrev.com> wrote:
Thanks for the replies.
I just put it on the forum as well and attached an image with it to get a
better idea of what I want to do.
https://forums.livecode.com/viewtopic.php?f=8&t=36585
greetings,,
William
Op wo 29 dec. 2021 om 17:51 schreef William Prothero via use-livecode <
use-livecode@lists.runrev.com>:
William,
My basic suggestion is that you use the location data of each connected
dot, rather than the image data.
Good luck,
Bill P
Sent from my iPad
> On Dec 29, 2021, at 8:42 AM, William Prothero via use-livecode <
use-livecode@lists.runrev.com> wrote:
>
> William,
> I understand that you want to see if the dots that are connected in one
path are also connected in another path which may have them connected in a
different order. Seems you could just loop through each dot in the
reference path, then see if the same dots are included in the user’s path.
You would need to include a name for each reference point, of course.
That’s if I understand your problem correctly.
>
> Bill
>
>
> Sent from my iPad
>
>> On Dec 29, 2021, at 1:58 AM, William de Smet via use-livecode <
use-livecode@lists.runrev.com> wrote:
>>
>> Hi there,
>>
>> Is there a better way to check if images are the same?
>> I now use imagadata.
>>
>> In my app I have an example drawn image (5x5 matrix with dots, a
Geoboard).
>> These dots are important because by touching them their Loc is used
>> (gStartLoc and gStartLoc)
>> Two dots will be connected by setting the points of the last grc to
>> gStartLoc & return & gStartLoc.
>> No problem here.
>>
>> The idea is that the user copies my example on their matrix/geoboard by
>> connecting the dots.
>> To check if the made images (geoboards) are the same I make a snapshot
of
>> both and compare the imagadata of these images.
>> Everything is fine as long as the user connects the same dots as the way
>> (length between dots) it is done in the example.
>> Then the imagadat is the same.
>>
>> The geoboards can look the same but the connected dots can be different
in
>> length so use imagadata to compare these is not the way to get it right.
>>
>> Any ideas for a better way?
>>
>>
>>
>> greetings,
>>
>> William
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode