export snapshot woverwrites variable?
Klaus major-k
klaus at major-k.de
Thu Dec 10 09:13:34 EST 2020
Hi Brian,
> Am 10.12.2020 um 15:08 schrieb Brian Milby via use-livecode <use-livecode at lists.runrev.com>:
>
> What about using (tObject)?
sorry, no capisce?
> Since tObject is a container itself, the export put the data in the container directly instead of the referenced container?
Hm, I thought you were working at Livecode and could answer this? :-D
But yes, obvioulsy, question is: desired/correct behviour?
Should I use DO somehow here?
> Sent from my iPhone
>
>> On Dec 10, 2020, at 8:56 AM, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Hi friends,
>>
>> just found a very strange thing...
>> I have this script:
>> ...
>> put dasObjekt() into tObject
>> ## returns in this special case -> image "Bild_1"
>>
>> flip tObject horizontal
>> # Overwrite image data
>> export snapshot from rect(the rect of tObject) of tObject to tObject as PNG
>>
>> ## But now, LC gives an error indication that tObject now contains the DATA of the new PNG
>> ## Hint: åPNG...
>> ## And yes, the palette in the debugger shows the complete PNG binary data instead of -> image "Bild_1"
>> ## as the content of tObject
>>
>> ## Doing this again fixes the inconvenience and I can continue:
>> put dasObjekt() into tObject
>> ...
>>
>> Funky, funky!?
Best
Klaus
--
Klaus Major
https://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list