]> git.saurik.com Git - wxWidgets.git/commit - tests/image/image.cpp
Improved palette handling with saving PNG files.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 1 Mar 2011 21:29:17 +0000 (21:29 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 1 Mar 2011 21:29:17 +0000 (21:29 +0000)
commit8529b0b909e478f0cf43aaafb262d1913d87c824
tree20662416814919a606dc8ca46ca4b93b8f837201
parent548fa9c1eb08b38b561b7861e1cf93a2ce78772a
Improved palette handling with saving PNG files.

Instead of converting alpha to a mask an attempt is made to write a palettised PNG file with an ARGB palette using a maximum of 256 transparency values where formerly just up to one was supported. GIF images with 256 colours and transparency can now also be saved as a palettised PNG instead of true colour, making the image a lot smaller.

Applied (modified) patch by troelsk. Closes #12850.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/imagpng.cpp
tests/image/image.cpp