]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/os2/pnghand.h
Commited FRM's stockitem patch (empty stock items).
[wxWidgets.git] / include / wx / os2 / pnghand.h
... / ...
CommitLineData
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 licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PNGHAND_H_
13#define _WX_PNGHAND_H_
14
15class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
16{
17 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
18public:
19 inline wxPNGFileHandler(void)
20 {
21 m_sName = "PNG bitmap file";
22 m_sExtension = "bmp";
23 m_lType = wxBITMAP_TYPE_PNG;
24 };
25
26 virtual bool LoadFile( wxBitmap* pBitmap
27 ,const wxString& rName
28 ,HPS hPs
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 );
38};
39
40#endif
41 // _WX_PNGHAND_H_
42