export snapshot with groups

Richard Gaskin ambassador at fourthworld.com
Wed Jan 30 13:30:32 EST 2008


Wilhelm Sanke wrote:

 > On Tue, 29 Jan 2008, Richard Gaskin <ambassador at fourthworld.com>
 > wrote:
 >> Is there some magic syntax option which will allow me to use the
 >> "export snapshot" command to export the full area within the
 >> boundingRect of a group object, even if the boundingRect may exceed
 >> the object's current rect?
 >>
 >> I know I can make an offscreen copy, adjust the rect to match the
 >> boundingRect, etc., but it sure would be handy if we had a one-liner
 >> to get the same result.
 >
 > Just do not use "export snapshot", but simply export the image in
 > the group, which may be partially hiddden, to a file, like
 >
 > "export img x to file tfilename as jpeg".

Ah, if only my groups contained a single object. :)

In this case these groups are part of a drawing program, and the group 
contains dozens of different objects.

My current method is to make an offscreen stack, copy the group there, 
turn off the scrollbars, size the stack to the group's boundingRect, 
size the group to match, and then export it.

But I was hoping for something as simple as SuperCard's one-liner....

-- 
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list