Hi Bernard,

If you use the select tool to copy a part of an image object to the clipboard, the data get converted to PNG by default. When you paste the image from the clipboard, the image is converted back to image data. Usually, a few bits change here and there and the imagedata in the new data is not equal to the imagedata of the copied part of the original image.

If you duplicate an image and control-drag the handles of the image object to crop it or use the crop command, you will get a new image with imagedata that were never converted. The imagedata of this new image are indeed equal to the imagedata of the corresponding part of the original image.

So, your optimism is justified.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 3/8/2015 10:32, Bernard Devlin wrote:
Is it possible to do this in livecode?

It would seem obvious to my naive mind, that since we have the imagedata,
and if image 2 is a crop of image 1, then we ought to be able to find out
if image 1 contains image 2.

Or am I insanely optimistic?

Regards,
Bernard


_______________________________________________
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

Reply via email to