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