Snaptshot of Browser Widget in iOS?
johnpatten at me.com
Thu May 18 18:26:24 EDT 2017
I am trying to lay some objects (text fields, graphics, etc.) over a browser widget. I am essentially just taking a screen capture and then layering the objects on top of the image. Here is my script:
put the rect of current stack into tCoord
set the width of image 1 to the width of current stack
set the height of image 1 to the height of current stack
set the topleft of image 1 to 0,0
export snapshot from rect tCoord to file specialFolderPath("documents") & "File1.png"
set the visible of widget "browser" to false
set the filename of image id 1008 to ""
set the filename of image id 1008 to SpecialFolderPath("documents") & "File1.png"
-- I believe i needed the three previous lines to get this to work for some reason???
show image id 1008 with visual effect dissolve slowly
This works fine on my Mac, but when I test it in the iOS simulator it does not work. Is it not possible to take a snapshot of the browser widget in iOS?
More information about the Use-livecode