Capturing screen into image

Paul Hibbert paul at livecode.org
Sat Jul 1 21:51:24 EDT 2017


Terry,

If your concern is that the area of the card doesn’t print exactly as you see it on screen, it looks to me like the printMargins are set at the default 72 all round.

Try setting the printMargins to 0
set the printMargins to "0,0,0,0"


Paul



Paul
paul at livecode.org

Mac OS Sierra 10.12.1



> On Jul 1, 2017, at 1:55 PM, Terence Heaford via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Hi,
> 
> Thanks for your suggestion but I am afraid it’s not working here:
> 
> I have prepared a short movie on dropbox so you can see what happens when I print it and then open as PDF in MacOS Preview.
> 
> Not sure at all what is going wrong. Could it be something to do with the scaling in the amCharts example?
> 
> Dropbox Link:  https://www.dropbox.com/s/1ijbw12v0176kgm/test.mov?dl=0
> 
> Thanks
> 
> Terry
> 
> 
>> On 1 Jul 2017, at 18:26, hh via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> This works here.
>> 
>> on mouseUp
>> local ii="myImage", bb="Browser"
>> if there is no img ii then create img ii
>> put globalLoc(the topLeft of widget bb) into TL
>> put globalLoc(the botRight of widget bb) into BR
>> export snapshot from rect (TL,BR) to img ii as PNG
>> hide widget bb -- avoid artefacts from browser update
>> print card from (the topLeft of img ii) to (the botRight of img ii)
>> show widget bb
>> end mouseUp
>> 
>> 
>> _______________________________________________
>> 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