Export Snapshot

Mark Schonewille m.schonewille at economy-x-talk.com
Sat Sep 22 14:08:23 EDT 2012


Hi Graham,

export snapshot from rect (the rect of control x) to myVar as JPEG
set the text of img y to myVar

However, since you're exporting an image, why don't you put img x into img y?

You could also use the import snapshot command, which creates a new image.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com



On 22 sep 2012, at 19:43, Graham Samuel wrote:

> Hi Mark
> 
> Thanks for the reply. If I don't want to invoke the filing system (and I don't), then how can I make a new image out of my exported rect? A variable isn't an image, after all - and yet the snapshot is nothing but a bitmap really. I know there are other ways of creating images extracted from existing displays (I'm using one of them quite successfully) but export snapshot seems so neat.
> 
> As I am clearly in a more than usually stupid phase (or the machinery is running down faster than usual), can you explain how I can make an image out of my snapshot without creating an intermediate file, and while you're at it, explain what use is a snapshot when it's locked up in a variable.
> 
> TIA
> 
> Graham
> 





More information about the use-livecode mailing list