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

Author Topic: What image formats are supported?  (Read 1775 times)

0 Members and 2 Guests are viewing this topic.

StriderPulse599

  • Newbie
  • *
  • Posts: 16
    • View Profile
What image formats are supported?
« on: December 09, 2023, 10:36:02 pm »
Tutorial only says "SFML supports most common image file formats. The full list is available in the API documentation. " which is nowhere to be seen

Ruckamongus

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
Re: What image formats are supported?
« Reply #1 on: December 10, 2023, 06:00:46 am »
https://www.sfml-dev.org/documentation/2.6.1/classsf_1_1Image.php#a9e4f2aa8e36d0cabde5ed5a4ef80290b

Quote
The supported image formats are bmp, png, tga, jpg, gif, psd, hdr, pic and pnm. Some format options are not supported, like jpeg with arithmetic coding or ASCII pnm. If this function fails, the image is left unchanged.

StriderPulse599

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: What image formats are supported?
« Reply #2 on: December 10, 2023, 02:09:21 pm »
https://www.sfml-dev.org/documentation/2.6.1/classsf_1_1Image.php#a9e4f2aa8e36d0cabde5ed5a4ef80290b

Quote
The supported image formats are bmp, png, tga, jpg, gif, psd, hdr, pic and pnm. Some format options are not supported, like jpeg with arithmetic coding or ASCII pnm. If this function fails, the image is left unchanged.

Thanks, this information should've been included in detailed description for sake of convenience

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: What image formats are supported?
« Reply #3 on: December 10, 2023, 08:37:16 pm »
To be clear, this:
https://www.sfml-dev.org/documentation/2.6.1/
is the API documentation (that you mentioned in the original post).
There, you can click Classes and look up all the available classes, including sf::Image.

Hope this helps :)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

StriderPulse599

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: What image formats are supported?
« Reply #4 on: December 11, 2023, 04:36:35 pm »
To be clear, this:
https://www.sfml-dev.org/documentation/2.6.1/
is the API documentation (that you mentioned in the original post).
There, you can click Classes and look up all the available classes, including sf::Image.

Hope this helps :)

I've actually swept through docs, but I didn't expect it to be hidden inside "Member Function". This is really important stuff that should be in "Detailed Description", and tutorial should say where exactly it is

 

anything