]>
Commit | Line | Data |
---|---|---|
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$ | |
8 | // Copyright: (c) Microsoft, Julian Smart | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma interface "pnghand.h" | |
14 | #endif | |
15 | ||
16 | class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler | |
17 | { | |
18 | DECLARE_DYNAMIC_CLASS(wxPNGFileHandler) | |
19 | public: | |
20 | inline wxPNGFileHandler(void) | |
21 | { | |
22 | m_name = "PNG bitmap file"; | |
23 | m_extension = "bmp"; | |
24 | m_type = wxBITMAP_TYPE_PNG; | |
25 | }; | |
26 | ||
27 | virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags, | |
28 | int desiredWidth, int desiredHeight); | |
29 | virtual bool SaveFile(wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL); | |
30 | }; | |
31 |