I am using this code to make screenshots from simulator for all devices (Android, iOS) and it works fine.
But the dimensions for Apple dashboard for iOS is not accepted (1080x1920).
I tried custom 2208 x 1242 on Windows but seems the simulator can’t show this.
So, please Corona Labs, give us the 2208x1242 resolution!
function screenshot() --I set the filename to be "widthxheight\_time.png" --e.g. "1920x1080\_20140923151732.png" local date = os.date( "\*t" ) local timeStamp = table.concat({date.year .. date.month .. date.day .. date.hour .. date.min .. date.sec}) local fname = display.pixelWidth.."x"..display.pixelHeight.."\_"..timeStamp..".png" --capture screen local capture = display.captureScreen(false) --make sure image is right in the center of the screen capture.x, capture.y = display.contentWidth \* 0.5, display.contentHeight \* 0.5 --save the image and then remove local function save() display.save( capture, { filename=fname, baseDir=system.DocumentsDirectory, isFullResolution=true } ) capture:removeSelf() capture = nil end timer.performWithDelay( 100, save, 1) return true end

