take a screenshot and save it as image

How do I capture a group of objects and save it as a thumbnail in system.DocumentsDirectory
I have checked out display.screencapture and display.save and none of them seem to work when the device orientation is not portrait?

Thanks
[import]uid: 75874 topic_id: 31994 reply_id: 331994[/import]

They seem to work for me.

The problem I get is that if the camera was not in portrait mode, when I capture the image it appears stretched / squished.

I compensate for this by checking the device orientation as soon as the camera returns to the app, and adjust my capture accordingly.

If it is landscape mode, you’ll need to swap your width / height arguments on the display.save call to compensate for the device (which has swapped x/y axis width/height when it took the image)… [import]uid: 79933 topic_id: 31994 reply_id: 127609[/import]

They seem to work for me.

The problem I get is that if the camera was not in portrait mode, when I capture the image it appears stretched / squished.

I compensate for this by checking the device orientation as soon as the camera returns to the app, and adjust my capture accordingly.

If it is landscape mode, you’ll need to swap your width / height arguments on the display.save call to compensate for the device (which has swapped x/y axis width/height when it took the image)… [import]uid: 79933 topic_id: 31994 reply_id: 127609[/import]

Ah, sorry, I’m not using the camera. I just want to take a snapshot of the current view. Works in portrait but not when rotated? [import]uid: 75874 topic_id: 31994 reply_id: 127802[/import]

Ah, sorry, I’m not using the camera. I just want to take a snapshot of the current view. Works in portrait but not when rotated? [import]uid: 75874 topic_id: 31994 reply_id: 127802[/import]