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
|
1998-08-07 23:52:45 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-07-03 16:36:10 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "pnghand.h"
|
|
|
|
#endif
|
|
|
|
|
1999-01-16 22:17:13 +00:00
|
|
|
#ifndef _WX_PNGHAND_H_
|
|
|
|
#define _WX_PNGHAND_H_
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
1999-01-16 22:17:13 +00:00
|
|
|
#endif
|
|
|
|
// _WX_PNGHAND_H_
|
|
|
|
|