some trouble with export snapshot
Christian Brossier
christian.brossier at free.fr
Thu Apr 29 05:41:23 EDT 2004
about a difficulty with Revolution 2.2 and import/export snapshot :
the computers :
iMac G3
Power Cube G4
PowerBook G4 1MHz
the system :
OS X 10.3.(2 or 3) (french system …)
the difficulty :
the following scripts run quite well with Revolution 2.1.2, Revolution
2.2RC2 and Revolution 2.2 for Mac OS 9, BUT NOT WITH REVOLUTION 2.2
UNDER OS X :
on mouseUp
put the windowID of this stack into savedID
import snapshot from rectangle (the rect of graphic "graphic 1") of
stack savedID
end mouseUp
and
on mouseUp
put the windowID of this stack into savedID
export snapshot from rect (the rect of graphic "Graphic 1") of window
savedID to file "Nav.jpg" as JPEG
end mouseUp
Of course, I can use a workaround taking into account the location of
the window and the location of the graphic into the window in order to
compute the top,left, right,bottom of the rectangle and then
"export snapshot from rect x,y,z,t to file …"
runs quite well.
But I can't understand why what run right with Revolution 2.2RC2 run
wrong with Revolution 2.2
Christian Brossier
More information about the use-livecode
mailing list