Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - koskos

Pages: [1]
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:
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?

Pages: [1]
anything