Rev Crash Again!

Wouter wouter.abraham at pi.be
Thu Jan 8 15:17:39 EST 2004


On 08 Jan 2004, at 17:20, use-revolution-request at lists.runrev.com wrote:

> Message: 4
> Date: Thu, 8 Jan 2004 08:38:40 -0600
> From: "Ken Ray" <kray at sonsothunder.com>
> Subject: RE: Rev Crash Again!
> To: "'How to use Revolution'" <use-revolution at lists.runrev.com>
> Message-ID: <00ef01c3d5f5$1efb5f00$6901a8c0 at LightningFlash>
> Content-Type: text/plain;	charset="US-ASCII"
>
>> < There are many times you might
>> want to export the contents of a card
>> to a JPG or PNG file, and MetaCard/Revolution's built in export
>> snapshot command takes a literal screenshot, so things like palettes
>> and toolbars can get in the way of getting a clean image of the card.
>> Additionally, you might have a stack window which is larger than the
>> current monitor, and need to export the card image; export snapshot
>> just won't cut it in these cases. >
>>
>> which is actually not correct because one can:
>>
>>     import snapshot from rect  the rect of window <  windowname >
>
> Well, the comment was condemning "export snapshot", not "import
> snapshot"; import snapshot suffers many of the same problems, though as
> the TD states: "if the window is partly overlapped by another window,
> whatever is visible on the screen within that rectangle is placed in  
> the
> snapshot". Basically, it literally takes a screen capture, whereas the
> tip at
> http://www.sonsothunder.com/devres/revolution/revolution.htm? 
> _imag007.ht
> m is not doing a screen capture; it is reading directly from the
> window's image buffer to create the export.
>
> Just a clarification,

:^)
in the TD is stated:

export snapshot [from rect[angle] rectangle [of window windowID]] \
    to {file filePath |container} [as format] [with mask maskFile]


and this works:

on mouseup
   export snapshot from  rect  the rect of this stack to  
txCurrentCardImage as PNG
   put txCurrentCardImage into fld "thumbnail"
end mouseup



> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/


WA



More information about the use-livecode mailing list