export snapshot woverwrites variable?

Klaus major-k klaus at major-k.de
Thu Dec 10 08:55:34 EST 2020


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