1998-05-20 10:12:05 -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
|
1998-08-07 19:52:45 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-07-03 12:36:10 -04:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "pnghand.h"
|
|
|
|
#endif
|
|
|
|
|
1999-01-16 17:17:13 -05:00
|
|
|
#ifndef _WX_PNGHAND_H_
|
|
|
|
#define _WX_PNGHAND_H_
|
|
|
|
|
1998-05-20 10:12:05 -04: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 11:17:59 -04:00
|
|
|
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
|
1998-05-20 10:12:05 -04:00
|
|
|
int desiredWidth, int desiredHeight);
|
1998-07-04 11:17:59 -04:00
|
|
|
virtual bool SaveFile(wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
1999-01-16 17:17:13 -05:00
|
|
|
#endif
|
|
|
|
// _WX_PNGHAND_H_
|
|
|
|
|