Am taking a snapshot of an image control (actually any control shows the issue) but the returned image data seems to be broken.. If I export to a file, the file has the correct data.. Am using Rev Enterprise 4.0 on Mac OS X 10.5.8 (PPC), I tried with Rev 2.8.1 and got the same issue..
create a new stack
import an image on the card
place a button on the card
edit the script of the button (use the code below)
on mouseUp
constant kObj = "image 1"
local tSs
export snapshot from kObj to tSs
create image
set the width of it to (the width of kObj)
set the height of it to (the height of kObj)
set the imageData of it to tSs
end mouseUp
Thanks for the tip, but trying to figure out where to store temporary files on someone else's machine is not always a nice thing to do so I was looking to do it all in memory
shaosean wrote:Thanks for the tip, but trying to figure out where to store temporary files on someone else's machine is not always a nice thing to do so I was looking to do it all in memory
Hm, isn't the TEMP folder(specialfolderpath("temporary")) meant for these kind of actions?
I always used this in the past and never got sued!
shaosean wrote:But there is no point to writing out a file when it can all be done in memory.. That makes the code quicker and also causes less wear on the drive
OK, OK, lets agree that this might be a case of personal taste