Wednesday, 21 August 2013

IllegalArgumentException: Numbers of source Raster bands and source color space components do not match For a color image Exception

IllegalArgumentException: Numbers of source Raster bands and source color
space components do not match For a color image Exception

File file = new File("path");
BufferedImage bufferedImage = ImageIO.read( file );
here is the code and below is the image to get the exception in the topic.
Download image:
https://skydrive.live.com/?cid=19547371C4F3B839&id=19547371C4F3B839%21105
Simply if someone can obtain a java.awt.image.BufferedImage object from
the image given that's enough (should not convert the image to gray scale
one).
You are a genius if you can answer this :D. Plz help.

No comments:

Post a Comment