new "at size" clause in export snapshot

Jan Schenkel janschenkel at yahoo.com
Fri Mar 28 17:49:26 EDT 2014


That's odd, I tested it earlier on a Windows machine, and again just now on a Mac, with LC 6.6

Here's my recipe:
- create a new stack
- drag an image and a button on it
- set the button script to:
##
on mouseUp
   local tObj, tData, tHeight, tWidth
   put the long id of me into tObj
   put 4 * the height of tObj into tHeight
   put 4 * the width of tObj into tWidth
   export snapshot from tObj at size tWidth, tHeight to tData as PNG
   put tData into image 1
end mouseUp
##

Click on the button and the image gets set without any issues.

Jan Schenkel.
=====
Quartam Reports & PDF Library for LiveCode
www.quartam.com

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

--------------------------------------------
On Fri, 3/28/14, Chris Sheffield <cmsheffield at icloud.com> wrote:

 Subject: Re: new "at size" clause in export snapshot
 To: "How to use LiveCode" <use-livecode at lists.runrev.com>
 Date: Friday, March 28, 2014, 2:21 PM
 
 Thanks, Jan. Making that change at
 least allowed my script to compile. Unfortunately, I got a
 run-time error. So something is still up. However, import
 snapshot works. I just had to take an extra step to deal
 with the created image.
 
 I’ll get a bug report submitted asap.
 
 Thanks,
 Chris
 




More information about the use-livecode mailing list