Try image4j - Image Library for Java
The image4j library allows you to read and write specific image formats in 100% pure Java.
The following formats are currently supported:
- BMP (Microsoft Raster Image Format - Uncompressed, 1, 4, 8, 24, and 32 bits)
- ICO (Microsoft icon format is 1, 4, 8, 24, and 32 bits [XP uncompressed, Vista compressed])
Using the library you can easily decode your ico file
List<BufferedImage> image = ICODecoder.read(new File("input.ico"));
source
share