]>
Commit | Line | Data |
---|---|---|
8cf73271 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$ | |
8 | // Copyright: (c) Julian Smart | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
a76fd371 RN |
12 | #ifndef _WX_PNGHAND_H_ |
13 | #define _WX_PNGHAND_H_ | |
14 | ||
8cf73271 SC |
15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
16 | #pragma interface "pnghand.h" | |
17 | #endif | |
18 | ||
a76fd371 RN |
19 | #include "wx/defs.h" |
20 | ||
96bbbe1b | 21 | #if wxUSE_LIBPNG |
8cf73271 SC |
22 | |
23 | class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler | |
24 | { | |
25 | DECLARE_DYNAMIC_CLASS(wxPNGFileHandler) | |
26 | public: | |
27 | inline wxPNGFileHandler(void) | |
28 | { | |
19d360ad SC |
29 | SetName(wxT("PNG bitmap file")); |
30 | SetExtension(wxT("bmp")); | |
31 | SetType(wxBITMAP_TYPE_PNG); | |
8cf73271 SC |
32 | }; |
33 | ||
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); | |
37 | }; | |
38 | ||
a76fd371 RN |
39 | #endif //wxUSE_LIBPNG |
40 | ||
8cf73271 SC |
41 | #endif |
42 | // _WX_PNGHAND_H_ | |
43 |