an ImageIO compatible library for reading .ico files. this class is capable of reading the Microsoft ICO format It is ImageIO compatible and supports transparency (including the alpha channels in 32bit windows xp icons)
the library is available using the LGPL license
Usage:
add the jar file to your classpath to add support for .ico files to the ImageIO
api.
alternatively you can try to use the lib from the commandline
either use
"java -jar ICOReader.jar c:\test.ico" (tries to decode the specified
file/dir with this library)
or
"java -jar ICOReader.jar -imageio c:\test.ico" (tries to decode the
specified file/dir with the ImageIO api)
Usage:
Optional Settings:
if you set the System property "nl.ikarus.nxt.priv.imageio.icoreader.autoselect.icon"
to "true"
(-D.... at the commandline or System.setProperty(...) from inside your application)
this lib will return an icon independend of the index nr you supply
the selection is made based upon the following criteria:
1. the icon with the most colors
2. the largest icon.