LoadFile( name, type );
}
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
wxImage::wxImage( wxInputStream& stream, long type )
{
LoadFile( stream, type );
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
wxImage::wxImage( const wxImage& image )
{
bool wxImage::LoadFile( const wxString& filename, long type )
{
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
if (wxFileExists(filename))
{
wxFileInputStream stream(filename);
return FALSE;
}
-#else // !wxUSE_STREAM
+#else // !wxUSE_STREAMS
return FALSE;
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
}
bool wxImage::SaveFile( const wxString& filename, int type )
{
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
wxFileOutputStream stream(filename);
if ( stream.LastError() == wxStream_NOERROR )
return SaveFile(stream, type);
else
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
return FALSE;
}
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
bool wxImage::LoadFile( wxInputStream& stream, long type )
{
UnRef();
return handler->SaveFile( this, stream );
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
void wxImage::AddHandler( wxImageHandler *handler )
{
IMPLEMENT_DYNAMIC_CLASS(wxImageHandler,wxObject)
#endif
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
bool wxImageHandler::LoadFile( wxImage *WXUNUSED(image), wxInputStream& WXUNUSED(stream) )
{
return FALSE;
{
return FALSE;
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
//-----------------------------------------------------------------------------
// wxPNGHandler
#endif
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
static void _PNG_stream_reader( png_structp png_ptr, png_bytep data, png_size_t length )
{
((wxInputStream*) png_get_io_ptr( png_ptr )) -> Read(data, length);
}
return TRUE;
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
#endif
IMPLEMENT_DYNAMIC_CLASS(wxBMPHandler,wxImageHandler)
#endif
-#if wxUSE_STREAM
+#if wxUSE_STREAMS
bool wxBMPHandler::LoadFile( wxImage *image, wxInputStream& stream )
{
unsigned char *data, *ptr;
return TRUE;
}
-#endif // wxUSE_STREAM
+#endif // wxUSE_STREAMS
#ifdef __WXMSW__