]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/pnghand.h
#ifdefed out a typedef not appropriate to MSW; added SetSelection to choice dialog
[wxWidgets.git] / include / wx / msw / pnghand.h
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 license
10 /////////////////////////////////////////////////////////////////////////////
11
12 class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
13 {
14 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
15 public:
16 inline wxPNGFileHandler(void)
17 {
18 m_name = "PNG bitmap file";
19 m_extension = "bmp";
20 m_type = wxBITMAP_TYPE_PNG;
21 };
22
23 virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, const long flags,
24 int desiredWidth, int desiredHeight);
25 virtual bool SaveFile(wxBitmap *bitmap, const wxString& name, const int type, const wxPalette *palette = NULL);
26 };
27