My app has 2 buttons to save and share an image. One calls display.captureScreen(true) to store a user’s creation in their photo library. A second button calls display.save(stage,“somefile.png”,system.TemporaryDirectory) - where stage = display.getCurrentStage().
The captured image is 720x1184px but the one taken from display.save() is only 720x1080.
This is my config.lua file:
application = {
content = {
width = 320,
height = 480,
scale = "letterbox",
xAlign = "center",
yAlign = "center",
imageSuffix = {
["@2x"] = 2
},
},
}
All of my content is positioned within this 320x480 area, apart from an image watermark which is set to display at the bottom of the screen. This image gets cut in half as the screenshot is cropped shorter compared with display.captureScreen(true).
Can anyone help explain why, and also how I can prevent this cropped image.
Thanks [import]uid: 140429 topic_id: 28332 reply_id: 328332[/import]