1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxImage PNM handler
4 // Author: Sylvain Bougnoux
5 // Copyright: (c) Sylvain Bougnoux
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
10 #define _WX_IMAGPNM_H_
14 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxPNMHandler
: public wxImageHandler
24 m_name
= wxT("PNM file");
25 m_extension
= wxT("pnm");
26 m_altExtensions
.Add(wxT("ppm"));
27 m_altExtensions
.Add(wxT("pgm"));
28 m_altExtensions
.Add(wxT("pbm"));
29 m_type
= wxBITMAP_TYPE_PNM
;
30 m_mime
= wxT("image/pnm");
34 virtual bool LoadFile( wxImage
*image
, wxInputStream
& stream
, bool verbose
=true, int index
=-1 );
35 virtual bool SaveFile( wxImage
*image
, wxOutputStream
& stream
, bool verbose
=true );
37 virtual bool DoCanRead( wxInputStream
& stream
);
41 DECLARE_DYNAMIC_CLASS(wxPNMHandler
)