Try changing this line:
put tImageData["image"] into image "currentpuzzle"
to this:
set the imageData of image "currentpuzzle" to tImageData["image"]
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 28, 2020 6:06:39 AM Sann
https://www.dropbox.com/s/gdrsa4git7l6war/imager.livecode.zip?dl=0
Richmond
On 28.10.20 13:34, Richmond wrote:
Remember that you have to lock an image to stop it popping back to its
original size.
Or, alternatively, you could change the order of your code.
Also, you have misspelt 'height' in
Remember that you have to lock an image to stop it popping back to its
original size.
Or, alternatively, you could change the order of your code.
Also, you have misspelt 'height' in "resizeToHeigth".
Also, while you have defined "resizeToWidth", you don't appear to have
defined "resizeToHeight
Take for example
[command] resizeToWidth tImage, 400
on resizeToWidth pImage,pSize
local tOrigImgWidth, tOrigImgHeight, tRatio, tNewWidth, tNewHeight
set the itemdel to "x"
put item 1 of sCurrentGraphicRect into tOrigImgWidth
put item 2 of sCurrentGraphicRect into tOrigImgHeight
i
Take for example
[command] resizeToWidth tImage, 400
on resizeToWidth pImage,pSize
local tOrigImgWidth, tOrigImgHeight, tRatio, tNewWidth, tNewHeight
set the itemdel to "x"
put item 1 of sCurrentGraphicRect into tOrigImgWidth
put item 2 of sCurrentGraphicRect into tOrigImgHeight
i