]>
Commit | Line | Data |
---|---|---|
ef6bd27b SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: pnghand.h | |
3 | // Purpose: PNG bitmap handler | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 04/01/98 | |
7 | // RCS-ID: $Id$ | |
6d89ddef | 8 | // Copyright: (c) Julian Smart |
e40298d5 | 9 | // Licence: wxWindows licence |
ef6bd27b SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
af49c4b8 | 12 | #if defined(__GNUG__) && !defined(__APPLE__) |
ef6bd27b SC |
13 | #pragma interface "pnghand.h" |
14 | #endif | |
15 | ||
16 | #ifndef _WX_PNGHAND_H_ | |
17 | #define _WX_PNGHAND_H_ | |
18 | ||
19 | class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler | |
20 | { | |
21 | DECLARE_DYNAMIC_CLASS(wxPNGFileHandler) | |
22 | public: | |
23 | inline wxPNGFileHandler(void) | |
24 | { | |
c4e41ce3 SC |
25 | m_name = wxT("PNG bitmap file"); |
26 | m_extension = wxT("bmp"); | |
e40298d5 | 27 | m_type = wxBITMAP_TYPE_PNG; |
ef6bd27b SC |
28 | }; |
29 | ||
30 | virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags, | |
31 | int desiredWidth, int desiredHeight); | |
293d3988 | 32 | virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL); |
ef6bd27b SC |
33 | }; |
34 | ||
35 | #endif | |
36 | // _WX_PNGHAND_H_ | |
37 |