1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: PNG bitmap handler
4 // Author: Julian Smart
8 // Copyright: (c) Microsoft, Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(__APPLE__)
13 #pragma interface "pnghand.h"
16 #ifndef _WX_PNGHAND_H_
17 #define _WX_PNGHAND_H_
19 class WXDLLEXPORT wxPNGFileHandler
: public wxBitmapHandler
21 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler
)
23 inline wxPNGFileHandler(void)
25 m_name
= "PNG bitmap file";
27 m_type
= wxBITMAP_TYPE_PNG
;
30 virtual bool LoadFile(wxBitmap
*bitmap
, const wxString
& name
, long flags
,
31 int desiredWidth
, int desiredHeight
);
32 virtual bool SaveFile(const wxBitmap
*bitmap
, const wxString
& name
, int type
, const wxPalette
*palette
= NULL
);