]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/pnghand.h
better file data support
[wxWidgets.git] / include / wx / os2 / pnghand.h
CommitLineData
fb46a9a6
DW
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
65571936 9// Licence: wxWindows licence
fb46a9a6
DW
10/////////////////////////////////////////////////////////////////////////////
11
fb46a9a6
DW
12#ifndef _WX_PNGHAND_H_
13#define _WX_PNGHAND_H_
14
15class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
16{
43543d98 17 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
fb46a9a6 18public:
43543d98
DW
19 inline wxPNGFileHandler(void)
20 {
21 m_sName = "PNG bitmap file";
22 m_sExtension = "bmp";
23 m_lType = wxBITMAP_TYPE_PNG;
24 };
fb46a9a6 25
43543d98
DW
26 virtual bool LoadFile( wxBitmap* pBitmap
27 ,const wxString& rName
738f53e9 28 ,HPS hPs
43543d98
DW
29 ,long lFlags
30 ,int nDesiredWidth
31 ,int nDesiredHeight
32 );
33 virtual bool SaveFile( wxBitmap* pBitmap
34 ,const wxString& rName
35 ,int nType
36 ,const wxPalette* pPalette = NULL
37 );
fb46a9a6
DW
38};
39
40#endif
41 // _WX_PNGHAND_H_
42