Hey there,
I’m using display.save to save down a simple screenshot of a display object or the stage.currentDisplay.
The Win-Simulator seems to save down the image incorrectly - the resulting image is always 0.5x the size of its natural size.
As shown in the lua-example below, I’m simply creating a red rectangle over the whole screen, saving the stage.currentDisplay down, removing the original rectangle and then loading the saved image.
I would expect the image to be the same size as it was pre-saving…
Does this happen on the mac version as well? Can anyone confirm?
See link for screenshot:
http://imageshack.us/photo/my-images/839/errorimage.jpg/
Notice:
-Using Daily Build 649, Win/Android version
- Using large screen (resolution is high: 1920x1080)
- This errors happens both when zoomed in or zoomed out in the simulator
- I do not have any special configuration settings for dynamic scaling
[lua]–create rect
local rect = display.newRect(0, 0, display.contentWidth, display.contentHeight)
rect:setFillColor(255, 1, 1, 255);
local baseDir = system.DocumentsDirectory
local fileName = “entireScreen.jpg”;
–save
display.save( display.currentStage, fileName, baseDir )
–remove rect
rect:removeSelf()
– load saved image
local image = display.newImage(fileName, baseDir)[/lua] [import]uid: 90232 topic_id: 18382 reply_id: 318382[/import]