Re: export snapshot with acceleratedRendering

2015-09-04 Thread Paul Hibbert
> On Sep 4, 2015, at 12:30, Dan Friedman wrote: > > So, the screen must not be locked, and acceleratedRendering must be off. > Not sure if you call that a bug or not... but it's working. Hope I don't > have issues when I try it on Android. or… export snapshot from this card to pictVar

Re: export snapshot with acceleratedRendering

2015-09-04 Thread Dan Friedman
Mark, Ok... I found the combination that works. This assumes you have opened a stack and acceleratedRendering is enabled: THIS FAILS (produces a grey image): lock screen export snapshot from rect (the rect of this card) to pictVariable as PNG //do some stuff unlock screen THIS FAILS: export

Re: export snapshot with acceleratedRendering

2015-09-04 Thread Dan Friedman
Mark, Thanks for the help but 'the rect of this card' produced the same result a grey image. Any other thoughts? -Dan > 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

Re: export snapshot with acceleratedRendering

2015-09-04 Thread Mark Waddingham
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

export snapshot with acceleratedRendering

2015-09-04 Thread Dan Friedman
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