#pragma hdrstop
#endif
+#ifndef WX_PRECOMP
+# include "wx/setup.h"
+#endif
+
+#if wxUSE_PNM
+
#include "wx/image.h"
#include "wx/log.h"
#include "wx/txtstrm.h"
-#ifdef __WXMSW__
-#include <windows.h>
-#endif
-
//-----------------------------------------------------------------------------
// wxBMPHandler
//-----------------------------------------------------------------------------
#if wxUSE_STREAMS
- //#include <stream.h> // for cout
-
void Skip_Comment(wxInputStream &stream)
{
wxString line;
Skip_Comment(buf_stream);
text_stream >> maxval;
- //cout << width << " " << height << " " << maxval << endl;
+ //cout << line << " " << width << " " << height << " " << maxval << endl;
image->Create( width, height );
unsigned char *ptr = image->GetData();
if (!ptr)
return FALSE;
}
- if (c=='3') // Ascii RBG
+ if (c=='3') // Ascii RBG
{
wxUint32 value, size=3*width*height;
for (wxUint32 i=0; i<size; ++i)
#endif // wxUSE_STREAMS
-
+#endif // wxUSE_PNM