#ifdef WITH_LIBPNG
delete[] priv->data;
#endif
+ delete priv;
}
void Image::load_file(const string &fn)
throw Exception("Not a PNG image and DevIL support not compiled in");
#endif
}
+ (void)fn;
}
void Image::load_memory(const void *data, unsigned size)
throw Exception("Error loading image from memory");
#else
throw Exception("Not a PNG image and DevIL support not compiled in");
- //(void)data; (void)size;
#endif
}
+ (void)data;
+ (void)size;
}
PixelFormat Image::get_format() const
{
#ifdef WITH_LIBPNG
if(priv->data)
- return priv->width;
+ return priv->height;
#endif
#ifdef WITH_DEVIL
if(priv->id)