Add an option to embed image size in its name to PNG-to-C script.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Dec 2010 17:38:40 +0000 (17:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Dec 2010 17:38:40 +0000 (17:38 +0000)
commit46eada874a6e63143589f437713648ca8fb90f71
treefa51e0261ae54f4a600ea9b637dedad2851f4717
parent7b8983996ebda21750310495de29cc9d0c4b4efc
Add an option to embed image size in its name to PNG-to-C script.

When a PNG image exists in several sizes it makes sense to use its size as a
suffix to distinguish the different versions, so update the png2c script to
optionally allow to do this.

Current implementation simply checks the PNG header directly to avoid any
extra dependencies.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
misc/scripts/png2c.py