export snapshot on iOS results in black image file

Chipp Walters chipp at chipp.com
Sun Jul 15 23:43:49 EDT 2012


Tom,

I seem to remember reading export snapshot only works on objects for
mobile. So try exporting the image, or group the image and eport the group.
That's how I did it onAndroid.

On Sunday, July 15, 2012, Scott Rossi wrote:

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


-- 
Chipp Walters
CEO, Altuit, Inc.



More information about the use-livecode mailing list