Copy Image to TargetImage
Klaus major-k
klaus at major-k.de
Sun Dec 1 12:16:43 EST 2013
Hi Rick,
Am 01.12.2013 um 18:11 schrieb Rick Harrison <harrison at all-auctions.com>:
> Hi there,
>
> Ok, I used to know how to do this.
> Now when I try to copy imageData
> from one image to another I just get
> garbage in the targeted image.
>
> set the imageData of image "TargetImage" of this card to the imageData of image "OriginalImage" of this card
>
> I’ve been through the archives trying
> to figure out what is going wrong
> but no joy.
>
> Suggestions?
Yes :-)
Setting the imagedata requires that both images (source and target) have the SAME
height and width! If they don't you see garbage!
Set "the text" property instead:
...
set the text of image "TargetImage" to the text of img "OriginalImage"
...
> Thanks,
>
> Rick
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list