image - How to read an ico format picture in java? -


I have a number of .ico-formatted images, and I want to use them in my Java SE project, T format know how do i work on it?

Try

image4j library gives you some image in 100% pure Java Allows reading and writing formats.

Currently the following formats are supported:

  • BMP (Microsoft bitmap format - uncompressed; 1, 4, 8, 24 and 32 bit)
  • ICO (Microsoft icon format - 1, 4, 8, 24 and 32 bit [XP uncompressed, Vista compressed])

    With library you can easily decode your ico file

      list & lt; BufferedImage & gt; Image = ICODecoder.read (new file ("input.ico"));    

Comments