Image format

Klaus Major klaus at major-k.de
Wed Aug 4 15:55:37 CDT 2004


Kunban wa Furukawa-san ;-)

> 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).

Sorry, did overread this completely...
Although i think this was in 2.5...? But am not sure...

Anyway, try this:

set the paintCompression to PNG
import snapshot from rect "0,0,100,100"
put last mage into url "binfile:imagedir/myimage.png"


Hope THIS helps :-)


Sayoonara

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



More information about the use-livecode mailing list