-#include <png.h>
#include "pngloader.h"
+#include <png.h>
using namespace std;
throw bad_image_data(priv->message);
}
- data.pixels = new char[data.stride*data.height];
-
if(priv->interlace==PNG_INTERLACE_ADAM7)
{
// ADAM7 requires all rows to be loaded at once