resize images not permanent
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
resize images not permanent
I resize copied images on a card with:
go to card "ResizedResources"
repeat with i = 1 to the number of images
put the id of image i into tid
set the width of image id tid to xwidth
set the height of image id tid to yheight
end repeat
I can see them get resized. But as soon as I switch cards, everything is back to the default size...
How to make this permanent? Is a card save really necessary?...
go to card "ResizedResources"
repeat with i = 1 to the number of images
put the id of image i into tid
set the width of image id tid to xwidth
set the height of image id tid to yheight
end repeat
I can see them get resized. But as soon as I switch cards, everything is back to the default size...
How to make this permanent? Is a card save really necessary?...
Re: resize images not permanent
even a save right after doesn't fix it. Switching cards... tada back to default original size.
whaaat even if I resize in the property inspector it's not permanent...
whaaat even if I resize in the property inspector it's not permanent...
Re: resize images not permanent
HI rinzwind,
you need to check "lockloc" (Lock size and prisition) in the inspector for these images
to prevent this inconvenience!
Best
Klaus
you need to check "lockloc" (Lock size and prisition) in the inspector for these images
to prevent this inconvenience!
Best
Klaus
Re: resize images not permanent
wow thanks. looks better than the other weird solution I found...
set the imageData of image id tid to the imageData of image id tid
that's just crazy
set the imageData of image id tid to the imageData of image id tid
that's just crazy

Re: resize images not permanent
somehow the original imagedata is still there.. I can resize it back to the original size without loss of quality. Thats not what I want. I just want permanent resize and no leftovers.
Re: resize images not permanent
the combination of lockloc and imagedata does it... ugly but it works
Re: resize images not permanent
I always create my images in the necessary size in a dedicated image editing app***,
so there is no need to resize and no overhead at all!
***This will always look better than resizing an image in Livecode, althought LC is doing a good joob here
and we have the choice of three "resizequality"s here.
so there is no need to resize and no overhead at all!
***This will always look better than resizing an image in Livecode, althought LC is doing a good joob here
and we have the choice of three "resizequality"s here.