1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/pnghand.h
3 // Purpose: PNG bitmap handler
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PNGHAND_H_
12 #define _WX_PNGHAND_H_
18 class WXDLLIMPEXP_CORE wxPNGFileHandler
: public wxBitmapHandler
20 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler
)
22 inline wxPNGFileHandler(void)
24 SetName(wxT("PNG bitmap file"));
25 SetExtension(wxT("bmp"));
26 SetType(wxBITMAP_TYPE_PNG
);
29 virtual bool LoadFile(wxBitmap
*bitmap
, const wxString
& name
, long flags
,
30 int desiredWidth
, int desiredHeight
);
31 virtual bool SaveFile(const wxBitmap
*bitmap
, const wxString
& name
, int type
, const wxPalette
*palette
= NULL
);