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

Author Topic: SFML PNG Images  (Read 3514 times)

0 Members and 1 Guest are viewing this topic.

Dark Byte

  • Newbie
  • *
  • Posts: 30
    • View Profile
SFML PNG Images
« on: October 09, 2010, 08:37:36 pm »
Does it read RGBA from PNG files or just RGB?

Spodi

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://www.netgore.com/
SFML PNG Images
« Reply #1 on: October 09, 2010, 09:30:32 pm »
Alpha is read and properly utilized.

On a related note, not all images can be read even if the format is supported. So if you try to load a PNG (or any image) and get an error, try saving it with another program. I personally use Paint.NET since it has never given me any issues but still provides good PNG compression.

This error is a pretty rare occurrence, but can be tough to find if you don't know about it, so figured it is worth mentioning. :)

Dark Byte

  • Newbie
  • *
  • Posts: 30
    • View Profile
SFML PNG Images
« Reply #2 on: October 09, 2010, 10:54:26 pm »
Thanks

 

anything