SFML community forums

Help => General => Topic started by: StriderPulse599 on December 09, 2023, 10:36:02 pm

Title: What image formats are supported?
Post by: StriderPulse599 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
Title: Re: What image formats are supported?
Post by: Ruckamongus on December 10, 2023, 06:00:46 am
https://www.sfml-dev.org/documentation/2.6.1/classsf_1_1Image.php#a9e4f2aa8e36d0cabde5ed5a4ef80290b
 (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.
Title: Re: What image formats are supported?
Post by: StriderPulse599 on December 10, 2023, 02:09:21 pm
https://www.sfml-dev.org/documentation/2.6.1/classsf_1_1Image.php#a9e4f2aa8e36d0cabde5ed5a4ef80290b
 (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
Title: Re: What image formats are supported?
Post by: Hapax 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 (https://www.sfml-dev.org/documentation/2.6.1/annotated.php) and look up all the available classes, including sf::Image (https://www.sfml-dev.org/documentation/2.6.1/classsf_1_1Image.php).

Hope this helps :)
Title: Re: What image formats are supported?
Post by: StriderPulse599 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 (https://www.sfml-dev.org/documentation/2.6.1/annotated.php) and look up all the available classes, including sf::Image (https://www.sfml-dev.org/documentation/2.6.1/classsf_1_1Image.php).

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