]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/pnghand.h
Rewrote wxNotebook, incl. PAGE_CHANGING event
[wxWidgets.git] / include / wx / msw / pnghand.h
CommitLineData
2bda0e17
KB
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
bbcdf8bc 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
0d3820b3
JS
12#ifdef __GNUG__
13#pragma interface "pnghand.h"
14#endif
15
2fd284a4
JS
16#ifndef _WX_PNGHAND_H_
17#define _WX_PNGHAND_H_
18
2bda0e17
KB
19class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
20{
21 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
22public:
23 inline wxPNGFileHandler(void)
24 {
25 m_name = "PNG bitmap file";
26 m_extension = "bmp";
27 m_type = wxBITMAP_TYPE_PNG;
28 };
29
debe6624 30 virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
2bda0e17 31 int desiredWidth, int desiredHeight);
debe6624 32 virtual bool SaveFile(wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
2bda0e17
KB
33};
34
2fd284a4
JS
35#endif
36 // _WX_PNGHAND_H_
37