export snapshot on iOS results in black image file
Scott Rossi
scott at tactilemedia.com
Sun Jul 15 22:35:57 EDT 2012
Do you have any black regions displayed on your screen? Because I'm pretty
sure that, with your current script, you're capturing global screen
coordinates, even though you've specified an object's rect. You either need
to use the snapshot form that references a specific object, or convert your
rect to local (stack) coordinates.
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
Recently, Thomas McGrath III wrote:
> Has anyone run into an issue where exporting a snapshot on iOS results in a
> black image file?
>
> Here is the very simple code I am using:
> put specialFolderPath("documents") into tFolder
> put the rect of image "image" into tRect
> export snapshot from rect tRect to file (tFolder&"/test.jpg") as JPEG
>
> With document sharing on I get a black image test.jpg in iTunes and also if I
> try to email it etc. it is still just a black image.
>
> Thanks
>
>
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> 3mcgrath at comcast.net
>
>
> _______________________________________________
> 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