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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to