]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/pnghand.h
Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE...
[wxWidgets.git] / include / wx / mac / carbon / pnghand.h
CommitLineData
8cf73271
SC
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$
8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
a76fd371
RN
12#ifndef _WX_PNGHAND_H_
13#define _WX_PNGHAND_H_
14
8cf73271
SC
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "pnghand.h"
17#endif
18
a76fd371
RN
19#include "wx/defs.h"
20
96bbbe1b 21#if wxUSE_LIBPNG
8cf73271
SC
22
23class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler
24{
25 DECLARE_DYNAMIC_CLASS(wxPNGFileHandler)
26public:
27 inline wxPNGFileHandler(void)
28 {
29 m_name = wxT("PNG bitmap file");
30 m_extension = wxT("bmp");
31 m_type = wxBITMAP_TYPE_PNG;
32 };
33
34 virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
35 int desiredWidth, int desiredHeight);
36 virtual bool SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *palette = NULL);
37};
38
a76fd371
RN
39#endif //wxUSE_LIBPNG
40
8cf73271
SC
41#endif
42 // _WX_PNGHAND_H_
43