How to export PNG screenshot with transparency?
Posted: Sat Oct 20, 2018 1:43 am
How to export a PNG screenshot with transparency?
To take a screenshot with LÖVE 0.9.0 you used [love.graphics.newScreenshot] and set the argument [copyAlpha] to true, and a PNG would be rendered with transparency based on the alpha applied on draw().
LÖVE 0.11.0 replaced the function with [love.graphics.captureScreenshot] but removed the [copyAlpha] argument and now render weird opaque PNGs compared to the older version.
To make matters worse, the older function tested on 0.9.0 don't works properly with Windows 10 rendering a PNG with thumbnail but a blank transparent image. It is fine on Windows 7.
To take a screenshot with LÖVE 0.9.0 you used [love.graphics.newScreenshot] and set the argument [copyAlpha] to true, and a PNG would be rendered with transparency based on the alpha applied on draw().
LÖVE 0.11.0 replaced the function with [love.graphics.captureScreenshot] but removed the [copyAlpha] argument and now render weird opaque PNGs compared to the older version.
To make matters worse, the older function tested on 0.9.0 don't works properly with Windows 10 rendering a PNG with thumbnail but a blank transparent image. It is fine on Windows 7.