]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/image.h
no message
[wxWidgets.git] / include / wx / image.h
index dc93c603c6a730790c2d326a0cbeb8faecffd2e2..ef5b924c1bf497e9156244250a429298b3fe2282 100644 (file)
@@ -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 );