Capturing screen into image

hh hh at hyperhh.de
Sat Jul 1 13:26:11 EDT 2017


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





More information about the Use-livecode mailing list