added support for saving grey and grey-red PNG images (patch 985447)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-27 15:24:50 +00:00
parent 04d4e6846e
commit a4efa72179
3 changed files with 156 additions and 33 deletions

View File

@@ -21,6 +21,17 @@
//-----------------------------------------------------------------------------
#if wxUSE_LIBPNG
#define wxIMAGE_OPTION_PNG_FORMAT wxT("PngFormat")
#define wxIMAGE_OPTION_PNG_BITDEPTH wxT("PngBitDepth")
enum
{
wxPNG_TYPE_COLOUR = 0,
wxPNG_TYPE_GREY = 2,
wxPNG_TYPE_GREY_RED = 3,
};
class WXDLLEXPORT wxPNGHandler: public wxImageHandler
{
public: