]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/pnghand.h
The rounded corners look really dumb at this size.
[wxWidgets.git] / include / wx / osx / pnghand.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/pnghand.h
3 // Purpose: PNG bitmap handler
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_PNGHAND_H_
12 #define _WX_PNGHAND_H_
13
14 #include "wx/defs.h"
15
16 #if wxUSE_LIBPNG
17
18 class WXDLLIMPEXP_CORE wxPNGFileHandler: public wxBitmapHandler
19 {
20 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
21 public:
22 inline wxPNGFileHandler(void)
23 {
24 SetName(wxT("PNG bitmap file"));
25 SetExtension(wxT("bmp"));
26 SetType(wxBITMAP_TYPE_PNG);
27 }
28
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);
32 };
33
34 #endif //wxUSE_LIBPNG
35
36 #endif
37 // _WX_PNGHAND_H_
38