Re: new at size clause in export snapshot
Odd. Yes, this does work just fine. Not sure what I did earlier. All is well again. Thanks. On Mar 28, 2014, at 3:49 PM, Jan Schenkel janschen...@yahoo.com wrote: 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 cmsheffi...@icloud.com wrote: Subject: Re: new at size clause in export snapshot To: How to use LiveCode use-livecode@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 ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: new at size clause in export snapshot
2014-03-28 18:59 GMT+01:00 Chris Sheffield cmsheffi...@icloud.com: 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 Hi Chris, Could you try this instead? export snapshot from tObj to tData at size tWidth, tHeight as PNG HTH, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage - sunnYpdf ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
new at size clause in export snapshot
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: new at size clause in export snapshot
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 cmsheffi...@icloud.com wrote: Subject: new at size clause in export snapshot To: How to use LiveCode use-livecode@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: new at size clause in export snapshot
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 janschen...@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 cmsheffi...@icloud.com wrote: Subject: new at size clause in export snapshot To: How to use LiveCode use-livecode@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: new at size clause in export snapshot
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 cmsheffi...@icloud.com wrote: Subject: Re: new at size clause in export snapshot To: How to use LiveCode use-livecode@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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode