X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4bc67cc550bcd9d5f93f88ae22a4f6ac7fafb5f7..d851f77ec18370a5f664ef2fbe46ad00665f7370:/include/wx/image.h?ds=sidebyside diff --git a/include/wx/image.h b/include/wx/image.h index dc93c603c6..ef5b924c1b 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -24,7 +24,9 @@ //----------------------------------------------------------------------------- class WXDLLEXPORT wxImageHandler; +#ifdef wxUSE_LIBPNG class WXDLLEXPORT wxPNGHandler; +#endif class WXDLLEXPORT wxBMPHandler; class WXDLLEXPORT wxImage; @@ -62,6 +64,7 @@ protected: // wxPNGHandler //----------------------------------------------------------------------------- +#ifdef wxUSE_LIBPNG class WXDLLEXPORT wxPNGHandler: public wxImageHandler { DECLARE_DYNAMIC_CLASS(wxPNGHandler) @@ -78,6 +81,7 @@ public: virtual bool LoadFile( wxImage *image, const wxString& name ); virtual bool SaveFile( wxImage *image, const wxString& name ); }; +#endif //----------------------------------------------------------------------------- // wxBMPHandler @@ -127,6 +131,12 @@ public: 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 );