]>
Commit | Line | Data |
---|---|---|
fb46a9a6 | 1 | ///////////////////////////////////////////////////////////////////////////// |
1b88201f | 2 | // Name: wx/os2/pnghand.h |
fb46a9a6 DW |
3 | // Purpose: PNG bitmap handler |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 04/01/98 | |
fb46a9a6 | 7 | // Copyright: (c) Microsoft, Julian Smart |
1b88201f | 8 | // Licence: wxWindows licence |
fb46a9a6 DW |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
fb46a9a6 DW |
11 | #ifndef _WX_PNGHAND_H_ |
12 | #define _WX_PNGHAND_H_ | |
13 | ||
53a2db12 | 14 | class WXDLLIMPEXP_CORE wxPNGFileHandler: public wxBitmapHandler |
fb46a9a6 | 15 | { |
43543d98 | 16 | DECLARE_DYNAMIC_CLASS(wxPNGFileHandler) |
fb46a9a6 | 17 | public: |
43543d98 DW |
18 | inline wxPNGFileHandler(void) |
19 | { | |
20 | m_sName = "PNG bitmap file"; | |
21 | m_sExtension = "bmp"; | |
22 | m_lType = wxBITMAP_TYPE_PNG; | |
6dd0883d | 23 | } |
fb46a9a6 | 24 | |
43543d98 DW |
25 | virtual bool LoadFile( wxBitmap* pBitmap |
26 | ,const wxString& rName | |
738f53e9 | 27 | ,HPS hPs |
43543d98 DW |
28 | ,long lFlags |
29 | ,int nDesiredWidth | |
30 | ,int nDesiredHeight | |
31 | ); | |
32 | virtual bool SaveFile( wxBitmap* pBitmap | |
33 | ,const wxString& rName | |
34 | ,int nType | |
35 | ,const wxPalette* pPalette = NULL | |
36 | ); | |
fb46a9a6 DW |
37 | }; |
38 | ||
39 | #endif | |
1b88201f | 40 | // _WX_PNGHAND_H_ |