export snapshot with acceleratedRendering
Mark Waddingham
mark at livecode.com
Fri Sep 4 13:44:10 EDT 2015
Try doing from rect ... of this card. I think the form you are using is doing a screen buffer grab, which doesn't play so well with the OpenGL surface accelerated rendering uses. The of this card form renders things into an off screen buffer rather than trying to access the display buffer.
Mark
Sent from my iPhone
> On 4 Sep 2015, at 18:29, Dan Friedman <dan at clearvisiontech.com> wrote:
>
> On either the iPhone simulator or an actual device, if acceleratedRendering is enabled and I do:
>
> export snapshot from rect (the rect of this card) to pictVariable as PNG
>
> I get a solid grey image. If I never enable acceleratedRendering, then the image comes out fine. It seems that once acceleratedRendering has been enabled, your hosed. I even tried this:
>
> set the acceleratedRendering of this stack to false
> export snapshot from rect (the rect of this card) to pictVariable as PNG
> set the acceleratedRendering of this stack to true
>
> But, I just got the grey image again. Is there some magic property I have to set to take a screen shot on a mobile device if acceleratedRendering is enabled?
>
> Any guidance is appreciated!
>
> LC 7.0.1
>
> -Dan
> _______________________________________________
> 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