2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: pnghand.h
|
|
|
|
// Purpose: PNG bitmap handler
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/01/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2004-09-22 16:47:23 -04:00
|
|
|
#ifndef _WX_PNGHAND_H_
|
|
|
|
#define _WX_PNGHAND_H_
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
|
2004-09-23 12:23:53 -04:00
|
|
|
#if wxUSE_LIBPNG
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
|
|
|
|
public:
|
|
|
|
inline wxPNGFileHandler(void)
|
|
|
|
{
|
2005-02-06 06:19:58 -05:00
|
|
|
SetName(wxT("PNG bitmap file"));
|
|
|
|
SetExtension(wxT("bmp"));
|
|
|
|
SetType(wxBITMAP_TYPE_PNG);
|
2004-03-23 12:35:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
|
|
|
|
int desiredWidth, int desiredHeight);
|
|
|
|
virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
|
|
|
|
};
|
|
|
|
|
2004-09-22 16:47:23 -04:00
|
|
|
#endif //wxUSE_LIBPNG
|
|
|
|
|
2004-03-23 12:35:05 -05:00
|
|
|
#endif
|
|
|
|
// _WX_PNGHAND_H_
|
|
|
|
|