1999-10-14 22:36:24 +00: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 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-10-14 22:36:24 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "pnghand.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WX_PNGHAND_H_
|
|
|
|
#define _WX_PNGHAND_H_
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
|
|
|
|
{
|
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;
|
|
|
|
};
|
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
|
|
|
|
// _WX_PNGHAND_H_
|
|
|
|
|