Defold Screenshot - Capture the moment!

Yes, it sounds like that could be the case. I think we need to let extensions have access to the scale factor somehow.

--being app display resolution: 1031x580 and screenshot region: 500*580
local size_w = rendercam.viewport.width
local size_h = rendercam.viewport.height
local x, y, w, h = 0, 0, (size_w/1031)*500, (size_h/580)*580

Currently, Iā€™m adjusting the region size proportionally to the viewport size using this workaround, obtaining the width and height of the viewport from the Rendercam extension.

1 Like