1999-10-14 22:36:24 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-10-17 14:44:52 +00:00
|
|
|
// Name: wx/os2/pnghand.h
|
1999-10-14 22:36:24 +00:00
|
|
|
// Purpose: PNG bitmap handler
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/01/98
|
|
|
|
// Copyright: (c) Microsoft, Julian Smart
|
2006-10-17 14:44:52 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-10-14 22:36:24 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PNGHAND_H_
|
|
|
|
#define _WX_PNGHAND_H_
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPNGFileHandler: public wxBitmapHandler
|
1999-10-14 22:36:24 +00:00
|
|
|
{
|
1999-12-06 05:01:46 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
|
1999-10-14 22:36:24 +00:00
|
|
|
public:
|
1999-12-06 05:01:46 +00:00
|
|
|
inline wxPNGFileHandler(void)
|
|
|
|
{
|
|
|
|
m_sName = "PNG bitmap file";
|
|
|
|
m_sExtension = "bmp";
|
|
|
|
m_lType = wxBITMAP_TYPE_PNG;
|
2011-12-29 14:42:13 +00:00
|
|
|
}
|
1999-10-14 22:36:24 +00:00
|
|
|
|
1999-12-06 05:01:46 +00:00
|
|
|
virtual bool LoadFile( wxBitmap* pBitmap
|
|
|
|
,const wxString& rName
|
1999-12-22 18:41:00 +00:00
|
|
|
,HPS hPs
|
1999-12-06 05:01:46 +00:00
|
|
|
,long lFlags
|
|
|
|
,int nDesiredWidth
|
|
|
|
,int nDesiredHeight
|
|
|
|
);
|
|
|
|
virtual bool SaveFile( wxBitmap* pBitmap
|
|
|
|
,const wxString& rName
|
|
|
|
,int nType
|
|
|
|
,const wxPalette* pPalette = NULL
|
|
|
|
);
|
1999-10-14 22:36:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2006-10-17 14:44:52 +00:00
|
|
|
// _WX_PNGHAND_H_
|