Capturing screen into image

Terence Heaford t.heaford at
Sat Jul 1 16:55:15 EDT 2017


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:



> On 1 Jul 2017, at 18:26, hh via use-livecode <use-livecode at> 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
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list