Image format

Klaus Major klaus at major-k.de
Wed Aug 4 16:45:16 EDT 2004


Kon'ichi wa Furukawa-san,

> I would like to export the data of an image object in either PNG or JPG
> format in CGI.
> But when I do this, I get a corrupted PNG file. I use Revolution 
> Engine 2.5
> (which doesn't seem to support "export image" command yet).
>  Maybe "put into url" cannot be used with image objects?

Try this, which is a bit shorter, too :-)

...
import snapshot from rect "0,0,100,100"
export last image to file "imagedir/myimage.png" as PNG
...

Hope that helps.

> Takaaki Furukawa

Sayonara

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list