These two functions allows saving an image to disk from Lingo. The first
function saves the image as a Portable PixMap (PPM) file: this generates
a very large file but the advantage is that the script requires only the
FileIO Xtra, which is provided with Director.
The second function saves the image as a BMP file using the BinFileIO
Xtra. Although it's necessary to have this additional Xtra, the advantage
is that the generated file is far smaller than a PPM file.
To use these functions, just pass the image object and the name of the
file as parameters. For example:
saveImageAsPPM(member("bitmapMember").image, the moviePath
& "image.ppm")
saveImageAsBMP(sprite(1).image, the moviePath & "image.bmp")