is image 2 in image 1?
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Mar 8 10:23:37 EDT 2015
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
More information about the use-livecode
mailing list