1
Graphics / Loading PNG?
« on: May 18, 2010, 04:21:45 am »
I've just been going through the tutorial and trying things out. I don't seem to be able to load PNG using Image.LoadFromFile()
When running:
I get the message:
The PNG is a simple one created using GIMP and it works in other viewers. Is there something else that I should be doing to load PNGs?
When running:
Code: [Select]
Image Image;
if (!Image.LoadFromFile("./sprites2.png")) {
std::cerr << "Could not load image" << std::endl;
return -1;
}
I get the message:
Quote
Failed to load image "./sprites2.png". Reason : PNG not supported: 8-bit only
The PNG is a simple one created using GIMP and it works in other viewers. Is there something else that I should be doing to load PNGs?