1999-10-14 18:36:24 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: pnghand.h
|
|
|
|
// Purpose: PNG bitmap handler
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/01/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Microsoft, Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1999-10-14 18:36:24 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "pnghand.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WX_PNGHAND_H_
|
|
|
|
#define _WX_PNGHAND_H_
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
|
|
|
|
{
|
1999-12-06 00:01:46 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
|
1999-10-14 18:36:24 -04:00
|
|
|
public:
|
1999-12-06 00:01:46 -05:00
|
|
|
inline wxPNGFileHandler(void)
|
|
|
|
{
|
|
|
|
m_sName = "PNG bitmap file";
|
|
|
|
m_sExtension = "bmp";
|
|
|
|
m_lType = wxBITMAP_TYPE_PNG;
|
|
|
|
};
|
1999-10-14 18:36:24 -04:00
|
|
|
|
1999-12-06 00:01:46 -05:00
|
|
|
virtual bool LoadFile( wxBitmap* pBitmap
|
|
|
|
,const wxString& rName
|
1999-12-22 13:41:00 -05:00
|
|
|
,HPS hPs
|
1999-12-06 00:01:46 -05:00
|
|
|
,long lFlags
|
|
|
|
,int nDesiredWidth
|
|
|
|
,int nDesiredHeight
|
|
|
|
);
|
|
|
|
virtual bool SaveFile( wxBitmap* pBitmap
|
|
|
|
,const wxString& rName
|
|
|
|
,int nType
|
|
|
|
,const wxPalette* pPalette = NULL
|
|
|
|
);
|
1999-10-14 18:36:24 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_PNGHAND_H_
|
|
|
|
|