• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/mac/classic/
1/////////////////////////////////////////////////////////////////////////////
2// Name:        pnghand.h
3// Purpose:     PNG bitmap handler
4// Author:      Julian Smart
5// Modified by:
6// Created:     04/01/98
7// RCS-ID:      $Id: pnghand.h 35650 2005-09-23 12:56:45Z MR $
8// Copyright:   (c) Julian Smart
9// Licence:     wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PNGHAND_H_
13#define _WX_PNGHAND_H_
14
15class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
16{
17  DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
18public:
19  inline wxPNGFileHandler(void)
20  {
21    m_name = wxT("PNG bitmap file");
22    m_extension = wxT("bmp");
23    m_type = wxBITMAP_TYPE_PNG;
24  };
25
26  virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
27      int desiredWidth, int desiredHeight);
28  virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
29};
30
31#endif
32  // _WX_PNGHAND_H_
33
34