1998-05-20 14:12:05 +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
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-07-03 16:36:10 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "pnghand.h"
|
|
|
|
#endif
|
|
|
|
|
1998-05-20 14:12:05 +00:00
|
|
|
class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
|
|
|
|
public:
|
|
|
|
inline wxPNGFileHandler(void)
|
|
|
|
{
|
|
|
|
m_name = "PNG bitmap file";
|
|
|
|
m_extension = "bmp";
|
|
|
|
m_type = wxBITMAP_TYPE_PNG;
|
|
|
|
};
|
|
|
|
|
1998-07-04 15:17:59 +00:00
|
|
|
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
|
1998-05-20 14:12:05 +00:00
|
|
|
int desiredWidth, int desiredHeight);
|
1998-07-04 15:17:59 +00:00
|
|
|
virtual bool SaveFile(wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|