.icns: load as juce::Image

Hi,
I need to load .icns icon images (from external bundle icons) and display them. (Probably as juce::Image) Are there any decoders available for this, like the juce::ImageFileFormat?

If not, are there any other external helper I could use?
Thanks!

In the JUCE source there is getIconFromIcnsFile() this is not a public function however. Your best bet is probably copying it and adapting it to your needs. This wikipedia article Apple Icon Image format - Wikipedia gives some more details about how the file format is encoded if you need it, there are also some links to libraries and other tools that might be useful.

Thanks @anthony-nicholls, .icns is just a container that needs to be parsed and the image encoding can already be handled by the various juce::ImageFileFormat.

1 Like