Browser Widget and Images
Klaus major-k
klaus at major-k.de
Mon Mar 14 05:04:47 EDT 2022
Hi Rick,
> Am 14.03.2022 um 04:53 schrieb Jim Lambert via use-livecode <use-livecode at lists.runrev.com>:
>
>> So accessing the URL of the image directly in the image object
>> puts the image there, which is a good first step.
>>
>> How is it stored however?
>>
>> If one looks at the image source it still shows the URL.
>>
>> I find I?m unable to paint on top of the image, probably
>> because that would require my being able to modify the
>> online URL which isn?t possible for the obvious reason.
>>
>> I probably need to make a local copy of the image to
>> be able to work on it. Export image? Copy it to
>> the clipboard and paste it elsewhere?
>>
>> Suggestions?
>
> Rick,
> set the imagedata of img "myImage" to the imagedata of img "myImage"
what Jim said! :-)
Thisw way the image becomes part of the stack as if "imported as control"
and you can paint on it or whatever, which is not possible with referenced images, be they local or online.
> Will replace the referenced image with the actual content of that image.
> In other words the image will now be local and you can then manipulate its data.
> No need for snapshots. Although they work too!
>
> Jim Lambert
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list