I want to read the image selected by user using JFileChooser and then be able to get the color Channels(R,G,B) and the width and height of the image.
Is this the right approach to read the selected image file.
File im1 = new File(chooser.getSelectedFile(), null);
BufferedImage buff =ImageIO.read(im1);
Or is there a better way to read the image file in order to get the values of its separate color channels and get its separate values.