Another Export Snapshot Problem
Mark Smith
mark at maseurope.net
Tue Mar 20 08:12:04 EDT 2007
Shouldn't you be using relative points for the rect?
From the docs (2.8) :If a window, stack or object is specified, the
rectangle is given in relative (window) coordinates; otherwise, it is
given in absolute coordinates.
So:
put the windowID of this stack into tWindowID
put the rect of grp "GroupCounter" into tFrameRect
export snapshot from rect tFrameRect of window tWindowID to file
tFileName as PNG
Best,
Mark
On 20 Mar 2007, at 11:28, Dave wrote:
>
> put the windowID of this stack into myWindowID
> put globalLoc(the topLeft of group "GroupCounter") into
> myFrameRect
> put "," and globalLoc(the bottomRight of group "GroupCounter")
> after myFrameRect
> export snapshot from rect myFrameRect of window myWindowID to
> file myFileName as PNG
More information about the use-livecode
mailing list