display.captureScreen still broken

display.captureScreen is still capturing in portrait mode, despite the actual orientation of the device.

Works fine in the simulator, broken on the actual iPad. The captured image is also positioned incorrectly on the device.

iOS 4.3.3, Corona Version 2011.551 (2011.4.12).

The build was done on a Mac. [import]uid: 50861 topic_id: 11613 reply_id: 311613[/import]

grrrrrrrrrrrrrrrrrrrrrrrrrrr…

do you have code we can look at what you did?

c. [import]uid: 24 topic_id: 11613 reply_id: 42184[/import]

img = display.newImage("assets/img1024x768.png")  
obj = display.captureScreen()  
img.isVisible = false  

Just tried this in the simulator. Works fine.

I get nothing but a blank screen on the iPad though, which is not what I was experiencing in my other project.

I’ll try and do some more tests. [import]uid: 50861 topic_id: 11613 reply_id: 42186[/import]

read

http://developer.anscamobile.com/reference/index/displaycapturescreen

The Corona SDK includes a sample app that shows the best way to take a screen capture. It can be found at “Storage/ScreenCaptureToFile”

c [import]uid: 24 topic_id: 11613 reply_id: 42187[/import]

the sample code in Storage/ScreenCaptureToFile does not use display.captureScreen(), it uses display.save().

I have no need to store the captured image, which is why I’d like to use display.captureScreen(). You make it sound like display.captureScreen() is the incorrect thing to do. [import]uid: 50861 topic_id: 11613 reply_id: 42188[/import]

nope. just posting stuff here to see if it has worked or not…

not that this that or the other is the culprit.

c. [import]uid: 24 topic_id: 11613 reply_id: 42189[/import]

The example code on the page you linked…

http://developer.anscamobile.com/reference/index/displaycapturescreen

Does not work on the actual device (blank screen again). Works in the simulator fine. [import]uid: 50861 topic_id: 11613 reply_id: 42192[/import]

We thought the landscape problem was fixed but realized it’s still there in our testing last week. Doing a display.screenCapture in Landscape mode captures the screen in portrait. This is case #928 and we hope to fix this soon. [import]uid: 7559 topic_id: 11613 reply_id: 42289[/import]

Thank you! [import]uid: 50861 topic_id: 11613 reply_id: 42300[/import]