Top "Javax.imageio" questions

The Java Image I/O API (the javax.

Toolkit.getDefaultToolkit().createImage() vs ImageIO.read()

I'm creating a UI using Swing and I want to display an image in a JLabel. The code I use …

java image swing jpeg javax.imageio
ArrayIndexOutOfBoundsException: 4096 while reading gif file

I am able to read png file. But getting ArrayIndexOutOfBoundsException: 4096 while reading gif file. byte[] fileData = imageFile.getFileData(); ByteArrayInputStream byteArrayInputStream = …

java gif javax.imageio
Increasing screen capture speed when using Java and awt.Robot

Edit: If anyone also has any other recommendations for increasing performance of screen capture please feel free to share as …

java java-2d javax.imageio awtrobot
Why does loading this jpg using JavaIO give CMMException?

ImageIO.read(imagePath) with this file gives a CMMException, why cant Java cope with this seemingly valid file http://www.…

java image-processing jpeg javax.imageio
ImageIO.write not working?

I'm writing a 3D paint and I found a problem in java. In one part of the code it's working: …

java javax.imageio
Why does ImageReader return incorrect BufferedImage?

I'm trying to access a animated GIF image with 21 frames and then read the 12th (cause it starts at 0?) frame. …

java bufferedimage javax.imageio
Java ImageWriter BufferedImage to GIF

I hope you guys can help me with this one. I'm not sure if it is a bug in Java …

java gif bufferedimage javax.imageio bytearrayoutputstream
Why Java ImageIO flattens JPEG colors

When I read certain JPG files, colors are flattened. Here is a simple example that reads a jpg and just …

java jpeg javax.imageio