1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: PNG bitmap handler
4 // Author: Julian Smart
8 // Copyright: (c) Microsoft, Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 class WXDLLEXPORT wxPNGFileHandler
: public wxBitmapHandler
14 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler
)
16 inline wxPNGFileHandler(void)
18 m_name
= "PNG bitmap file";
20 m_type
= wxBITMAP_TYPE_PNG
;
23 virtual bool LoadFile(wxBitmap
*bitmap
, const wxString
& name
, const long flags
,
24 int desiredWidth
, int desiredHeight
);
25 virtual bool SaveFile(wxBitmap
*bitmap
, const wxString
& name
, const int type
, const wxPalette
*palette
= NULL
);