SFML community forums
Help => General => Topic started 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
-
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)
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.
-
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)
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
-
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 :)
-
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