//-----------------------------------------------------------------------------
class WXDLLEXPORT wxImageHandler;
+#ifdef wxUSE_LIBPNG
class WXDLLEXPORT wxPNGHandler;
+#endif
class WXDLLEXPORT wxBMPHandler;
class WXDLLEXPORT wxImage;
// wxPNGHandler
//-----------------------------------------------------------------------------
+#ifdef wxUSE_LIBPNG
class WXDLLEXPORT wxPNGHandler: public wxImageHandler
{
DECLARE_DYNAMIC_CLASS(wxPNGHandler)
virtual bool LoadFile( wxImage *image, const wxString& name );
virtual bool SaveFile( wxImage *image, const wxString& name );
};
+#endif
//-----------------------------------------------------------------------------
// wxBMPHandler
wxImage Scale( int width, int height );
+ // these routines are slow but safe
+ void SetRGB( int x, int y, unsigned char r, unsigned char g, unsigned char b );
+ unsigned char GetRed( int x, int y );
+ unsigned char GetGreen( int x, int y );
+ unsigned char GetBlue( int x, int y );
+
virtual bool LoadFile( const wxString& name, long type = wxBITMAP_TYPE_PNG );
virtual bool SaveFile( const wxString& name, int type );