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