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