new "at size" clause in export snapshot

Chris Sheffield cmsheffield at icloud.com
Fri Mar 28 17:21:57 EDT 2014


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

On Mar 28, 2014, at 12:35 PM, Jan Schenkel <janschenkel at yahoo.com> wrote:

> Hi Chris,
> 
> It turns out to be a difference between the syntax as described in the dictionary, and the actual parser implementation.
> The MCExport::parse method in cmdsf.cpp is written such that the 'at size' clause needs to come after the 'from' clause and before the 'to' clause.
> 
> A quick test showed that the following variant compiles and works:
> ##
> export snapshot from tObj at size tWidth, tHeight to tData as PNG
> ##
> 
> In other words, you should go to the Quality Center and file a report.
> RunRev needs to either update the dictionary or the parser code :-)
> 
> HTH,
> 
> 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: new "at size" clause in export snapshot
> To: "How to use LiveCode" <use-livecode at lists.runrev.com>
> Date: Friday, March 28, 2014, 10:59 AM
> 
> Has anybody tried out the new “at
> size” clause in the export snapshot command introduced in
> LC 6.6? I can’t get it to work. In fact, my script won’t
> even compile if I include it.
> 
>     export snapshot from tObj to tData as PNG
> at size tWidth, tHeight
> 
> I’ve tried various uses of parentheses and can’t get
> anything to work. Can anyone help? I can’t find a specific
> example anywhere in the dictionary or in the release notes.
> I need this in order to get a retina resolution snapshot on
> the retina iPad.
> 
> Thanks,
> Chris
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list