| 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 |
| 9 | // Licence: wxWindows licence |
| 10 | ///////////////////////////////////////////////////////////////////////////// |
| 11 | |
| 12 | #ifndef _WX_PNGHAND_H_ |
| 13 | #define _WX_PNGHAND_H_ |
| 14 | |
| 15 | class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler |
| 16 | { |
| 17 | DECLARE_DYNAMIC_CLASS(wxPNGFileHandler) |
| 18 | public: |
| 19 | inline wxPNGFileHandler(void) |
| 20 | { |
| 21 | m_name = wxT("PNG bitmap file"); |
| 22 | m_extension = wxT("bmp"); |
| 23 | m_type = wxBITMAP_TYPE_PNG; |
| 24 | }; |
| 25 | |
| 26 | virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags, |
| 27 | int desiredWidth, int desiredHeight); |
| 28 | virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL); |
| 29 | }; |
| 30 | |
| 31 | #endif |
| 32 | // _WX_PNGHAND_H_ |
| 33 | |